Vidyalelo
C Programming · Q113

Control Structures

Programming · C Programming · question 113

Q113

What will be the output of the following C code? #include int main() float f = 1; switch (f) case 1.0: printf("yes "); break; default: printf("default ");

A.
yes
B.
yes default
C.
Undefined behaviour
D.
Compile time error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board