Answers for "store a string in array c"

C
0

code to declare a n array and store string in it c

char ch_arr[3][10] = {
                         "spike",
                         "tom",
                         "jerry"
                     };
Posted by: Guest on July-05-2021
1

array of strings in c

char ch_arr[3][10] = {
                         {'s', 'p', 'i', 'k', 'e', '\0'},
                         {'t', 'o', 'm','\0'},
                         {'j', 'e', 'r', 'r', 'y','\0'}
                     };
Posted by: Guest on April-06-2021

Code answers related to "store a string in array c"

Code answers related to "C"

Browse Popular Code Answers by Language