Q169
What will be the output of the following C code? #include int main() int x = 1; short int i = 2; float f = 3; if (sizeof((x == 2) ? f : i) == sizeof(float)) printf("float "); else if (sizeof((x == 2) ? f : i) == sizeof(short int)) printf("short int ");
A.
float
AnswerB.
short int
C.
Undefined behaviour
D.
Compile time error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board