1. C preprocessor
2. A preprocessor command
3. What will be the output of the program?
#include<stdio.h>
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
#include<stdio.h>
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
4. What will be the output of the following program?
#include<stdio.h>
#define square(x) x*x
void main()
{
int i;
i = 64/square(4);
printf("%d", i);
}
#include<stdio.h>
#define square(x) x*x
void main()
{
int i;
i = 64/square(4);
printf("%d", i);
}
5. What will be the output of the program code?
#include<stdio.h>
#define a 10
void main()
{
#define a 50
printf("%d", a);
}
#include<stdio.h>
#define a 10
void main()
{
#define a 50
printf("%d", a);
}