C Preprocessor - Study Mode

[#66] What will be the output of the following C code? #include<stdio.h>
#define max 100
void main()
{
#if(max%10)
printf("Exam")
#endif
printf("Veda")
}
Correct Answer

(C) Veda

[#67] What will be the output of the following C code? #include<stdio.h>
#define INDIA 1
#define US 2
#define CC US
main()
{
#if CC==INDIA
printf("Rupee")
#elif CC==US
printf("Dollar")
#else
printf("Euro")
#endif
}
Correct Answer

(C) Dollar

[#68] What will be the output of the following C code if the value of 'p' is 10 and that of 'q' is 15? #include<stdio.h>
int main()
{
int p,q
printf("Enter two numbers
")
scanf("%d",&p)
scanf("%d",&q)
#if(4<2)
printf("%d",p)
#elif(2>-1)
printf("%d",q)
#else
printf("bye")
#endif
}
Correct Answer

(B) 15

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

(B) t3=10

[#70] What will be the output of the following C code? #define hello(c) #c
main()
{
printf(hello(i,am))
}
Correct Answer

(D) error