for eg
Code: Select all
char students[][]={"Hello","World"};
char **p;
p=students;
print(*p++);
Code: Select all
char students[][]={"Hello","World"};
char **p;
p=students;
print(*p++);
Code: Select all
char students[][]={"Hello","World"};
Code: Select all
$ gcc foo.c
foo.c: In function ?main?:
foo.c:5: error: array type has incomplete element type
Code: Select all
char* students []={"Hello","World"};
Code: Select all
print(*p++);
why? are you taking a compiler course? whose "questions"?how arrays and pointers are internally dereferenced
Code: Select all
int array_2[5][3] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }, { 10, 11, 12 }, { 13, 14, 15 } };