Như Quỳnh Lan
New member
What will be the output of the following C code?
A. 2 4.000000
B. Compile time error
C. 2 3.500000
D. Undefined behaviour
Code:
#include <stdio.h>
int main()
{
int x = 2, y = 2;
float f = y + x /= x / y;
printf("%d %f\n", x, f);
return 0;
}
B. Compile time error
C. 2 3.500000
D. Undefined behaviour