What will be the output of the following C code?
#include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}
#include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}A. 0
B. 0.000000
C. Garbage value
D. Depends on the compiler
Answer: Option A

Join The Discussion