Answers for "print array of strings in c"

C
4

print an array in c

int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
int i;

for (i = 0; i < 10; i++) {
  printf("%d ", array[i]);
}
Posted by: Guest on March-06-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 "C"

Browse Popular Code Answers by Language