-
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");
}
}
-
- Compilation Error
- Runtime Error
- Float
- Short int
- None of these
Correct Option: C
Float