What will be the output of the program?

1.5 # define dp(e) printf(#e “ = %d\n”,e)
main( )
{
int x =3, y = 2;
dp(x/y)
}
What will be the output of the program?
A) prints x/y = 1
B) prints #e = 1.5
C) prints #x/y = 1
D) none of the above

Consider the following program,

1.4 Consider the following program,
main( )
{
int x = 49;
for(;x;)
x--;
printf(“%d\n”, x);
}
the output of the program will be
A) 49
B) 0
C) -49
D) none of the above

Given the following code fragment: int main(void)

Given the following code fragment:
int main(void)
{
int raw[20], i, sum=0;
int *p = raw;
for (i=0; i < 20; i++)
*(p+i) = I;
for(i=0; i < 20; I += sizeof(int))
sum += *(p+i)
printf(“sum = %d\n”, sum);
return();
}
What will be the result of execution?

A) sum = 10
B) sum = 40
C) sum = 60
D) sum = 190

Given the following code fragment:

1.1 Given the following code fragment:
void main(void)
{
char x = ‘\0’;
char n = ‘N’;
printf(“%u” ”%s\n”, &n, &n);
}
What will be the result of execution?
A) ddddd N ( where d represents any digit)
B) 78 N
C) 78 garbage
D) compilation error