Question
What is the output of this C code?
int main()
{
float f = 1;
switch (f)
{
case 1.0:
printf("yes\n");
break;
default:
printf("default\n");
}
}
Answer: Option D
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution