C Preprocessor - Study Mode

[#81] What will be the output of the following C code? #define F abc
#define B def
#define FB(arg) #arg
#define FB1(arg) FB(arg)
main()
{
printf(FB(F B))
FB1(F B)
}
Correct Answer

(A) F B

[#82] What will be the output of the following C code? #include <stdio.h>
#define p( n,m ) printf( "%d", m##n )
int main()
{
p(3,4)
}
Correct Answer

(D) 43

[#83] What will be the output of the following C code? #define example(s,n) #s #n
main()
{
printf(example(hello,world))
}
Correct Answer

(D) helloworld

[#84] What will be the output of the following C code? #include <stdio.h>
#define hello( n ) a##n
int a3
int main()
{
int x
x=hello(3)
if(x!=0)
printf("hi")
else
printf("good")
}
Correct Answer

(C) good

[#85] What will be the output of the following C code? #include<stdio.h>
#define hello
main()
{
#ifdef hello
#define hi 4
#else
#define hi 5
#endif
printf("%d",hi)
}
Correct Answer

(A) 4