Q. What will be the output of the following C code? (Initial values: p= 10, q = 12)
Code:
#include <stdio.h>
void main()
{
float p;
int q;
printf("Enter two numbers: ", p);
scanf("%f %f", &p, &q);
printf("%f, %d", p, q);
}
β
Correct Answer: (D)
10.000000, Garbage value