C output type question

Q.  Trace the output

void main()
{
register R=20;
int * P=&R;
printf(ā€œ%dā€, *P);
}

- Published on 23 Jun 15

a. some address.
b. 20
c. Compile time error.
d. None of the above.

ANSWER: Compile time 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.)