Write the output of the following program: int a[ ] = {1,2,3,} *p;
Write the output of the following program:
int a[ ] = {1,2,3,} *p;
Show answerHide answer
Correct answer: (E) None of the above
Explanation
The fragment int a[] = {1,2,3,} *p; is missing a separator before *p, so it will not compile. It gives neither a junk value, 3, nor a runtime error.