What will be the output of the following C code?
#include <stdio.h>
void main()
{
float x = 0.1;
if (x == 0.1)
printf("India");
else
printf("Advanced C Classes");
}
#include <stdio.h>
void main()
{
float x = 0.1;
if (x == 0.1)
printf("India");
else
printf("Advanced C Classes");
}
A. Advanced C Classes
B. India
C. Run time error
D. Compile time error
Answer: Option A
Join The Discussion