how can you put a string into the 2 dimensional character array?
lets say you have
how do you put the value of "array2" in "array1" ??Code:char array1[10][10]; char array2[10] = {"my array"};
how can you put a string into the 2 dimensional character array?
lets say you have
how do you put the value of "array2" in "array1" ??Code:char array1[10][10]; char array2[10] = {"my array"};
Code:char array1[10][10]; // array1 has ten members, 0-9. there is no array1[10], so... strcpy(array[9],"myarray");
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge