C output type question

Q.  Trace the output.

extern int P
void main()
{
printf(ā€œ%dā€, P);
}

- Published on 23 Jun 15

a. Error
b. 0
c. P
d. None of the above

ANSWER: Error

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)