C Preprocessor - Study Mode

[#91] What will be the output of the following C code? #include <stdio.h>
#define a 2
main()
{
int r
#define a 5
r=a*2
printf("%d",r)
}
Correct Answer

(A) 10

[#92] 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
}
Correct Answer

(D) sorry

[#93] What will be the output of the following C code? #define sqr(x) x*x
main()
{
int a1
a1=25/sqr(5)
printf("%d",a1)
}
Correct Answer

(A) 25