1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p = 2;
short int k = 3;
float var = 4;
if (sizeof((p == 3) ? var : k) == sizeof(float))
{
printf("Float n");
}
else if (sizeof((p == 3) ? var : k) == sizeof(short int))
{
printf("Short int n");
}
}

A. Compilation Error
B. Runtime Error
C. Float
D. Short int
E. None of these
Answer» D. Short int


Discussion

No Comment Found

Related MCQs