Size of the array need not be specified, when
Answer: A
Correct answer: All of the above
The size may be omitted in all three cases. In a definition with an initialiser, int a[] = {1,2,3};, the compiler counts the initialisers. In a formal parameter, void f(int a[]), the array decays to a pointer and the size is meaningless. And in a declaration, extern int a[];, the definition elsewhere supplies the size.
Please log in or register to report this question.