6.
What will be the output of the program?
#include<stdio.h>
#define SQR(x) (x*x)
int main()
{
int a;
a = SQR(2+3+4);
printf(“%d\n”, a);
return 0;
}
A. 20
B. 49
C. Error
D. Garbage value
7.
What will be the output of the program?
#include<stdio.h>
#define SQR(x) (x*x*x)
int main()
{
int a;
a = SQR(2+3+4);
printf(“%d\n”, a);
return 0;
}
A. 25
B. 31
C. 81
D. Garbage value
8.
What will be the output of the program?
#include<stdio.h>
#define SQR(x) (x*x*x)
int main()
{
int a;
a = SQR(2+3-4);
printf(“%d\n”, a);
return 0;
}
A. 1
B. 11
C. -9
D. Garbage value
9.
What will be the output of the program?
#include<stdio.h>
#define SQR(x) (x*x*x)
int main()
{
int a;
a = SQR(2-3-4);
printf(“%d\n”, a);
return 0;
}
A. -125
B. 125
C. -27
D. Garbage value
10.
What will be the output of the program?
#include<stdio.h>
#define SQR(x) (x*x)
int main()
{
int a;
a = SQR(2-3-4);
printf(“%d\n”, a);
return 0;
}
A. -25
B. 25
C. -16
D. Garbage value