Output?
#include <stdio.h> int main()
{ register int i = 10;
int *ptr = &i;
printf ( "%d" , *ptr);
return 0;
} |
(A) Prints 10 on all compilers
(B) May generate compiler Error
(C) Prints 0 on all compilers
(D) May generate runtime Error
Answer: (B)
Explanation: See point 1 of Register Keyword
Quiz of this Question