How would I display the elements of array a on the screen?Code:#include <stdio.h> int main() { char a[3][8] = { {"First"}, {"Second"}, {"Third"} }; return 0; }
This does not work. Thanks.Code:#include <stdio.h> #include <string.h> int main() { int i, j; char a[3][8] = { {"First"}, {"Second"}, {"Third"} }; for( i = 0; i < 3; i++ ) { for( j = 0; j < strlen(a[i]); j++ ) printf("%s", a[i][j]); } return 0; }