Q. What will be the output of the following C code? (Initial values: x= 7, y = 8)
Code:
#include <stdio.h>
void main()
{
float x;
int y;
printf("enter two numbers \n", x);
scanf("%f %f", &x, &y);
printf("%f, %d", x, y);
}
β
Correct Answer: (C)
7.000000, junk