Vidyalelo
C Programming · Q92

C Preprocessor

Programming · C Programming · question 92

Q92

What will be the output of the following C code? #include #define hello( n ) printf( "a" #n "= %d", a##n ) int a3=3; int main() #ifdef a3 hello(3); #else printf("sorry"); #endif

A.
a3=3
B.
error
C.
a=3
D.
sorry
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board