What will be the output of the following program on GCC?

		
					

Loading

Choose the correct option.

What will be the output of the following program on GCC?

#include 
int main() {
float a=4;
int i=2;
printf("%f,%d ",i/a,i/a);
printf("%d,%f ",i/a,i/a);
return 0;
}

 

A. 0.500000, Garbage value
Garbage value, 0.500000
B. Garbage value,Garbage value
Garbage value,Garbage value
C. 0.500000,0.500000
0.500000,0.500000
D. 0.500000,0.500000
Garbage value,Garbage value