Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gaoanyu
  • Order by date
  1. gaoanyu

    Array of pointers

    It's because that the memory space (where "hello" is stored) that pointer[0] points to is not specified. try this: void main() { char *pointer[10]; pointer[0] = new char [10]; strcpy(pointer[0], "hello"); printf("%s", pointer[0]); delete [] pointer[0]; }

Part and Inventory Search

Back
Top