What will be the output of the following C code?
#include <stdio.h>
#define hello( n ) printf( "a" #n "= %d", a##n )
int a3=3;
int main()
{
#ifdef a3
hello(3);
#else
printf("sorry");
#endif
}
#include <stdio.h>
#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: Option D

Join The Discussion