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