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 gkittelson 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: *

  1. hansdampf3

    understanding char arrays...

    Thanks Salem! Now I got it.
  2. hansdampf3

    understanding char arrays...

    I've just ran a few tests and it seems the definition of char *text[][7] isn't the one i want. The [7] doesn't stand for the number of chars in each string, but for the number of strings in each "row". Therefore I can write char *text[][3], but the chars of each string are only...
  3. hansdampf3

    understanding char arrays...

    Thanks for your replys! It's clearer to me now. The right way for my definition would be const char *text[][7] = ... where the 7 is the lenght of my longest string + 1. Right? Another question: Does the const matter? Would char *anonymous = "Hello Mr. Bill" also be correct? Or...
  4. hansdampf3

    understanding char arrays...

    Hi erveryone! I'm quite new to C programming and I'm not sure whether the following little programm is correct and why it crashes with a single line uncommented. Heres the prog: /***************************************/ #include <stdio.h> int main(int argc, char *argv[]) { const char...

Part and Inventory Search

Back
Top