C - Input and Output
What will be the output of the following code?
int x = 10;
float y = 5.5;
printf("%d %f", x, y);
int x = 10;
float y = 5.5;
printf("%d %f", x, y);
%d prints integer as is, %f prints float with 6 decimal places by default.x is 10 (int), printed by %d. y is 5.5 (float), printed by %f as 5.500000.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions