C Programming :: C Preprocessor
-
What will be output after executing following code?
#include
# define a 10
void main()
{
printf("%d..", a);
foo();
printf("%d", a);
}
void foo()
{
#undef a
#define a 50
}
-
The output of the following program is:
#define f(g,g2) g##g2
void main()
{
int var12=100;
printf("%d", f(var,12));
}
-
Find the output of the following program.
#define INC(X) X++
void main()
{
int x=4;
printf("%d", INC(x++));
}