What will be the output of the following C code?
#include <stdio.h>
int main()
{
float a = 2.455555555555;
printf("%f", a);
}
#include <stdio.h>
int main()
{
float a = 2.455555555555;
printf("%f", a);
}
A. 2.455555
B. 2.455556
C. 2.456
D. 2.46
Answer: Option A
Related Questions on Operators and Expressions
What does the ++ operator do in C when applied to a variable?
A. Decrements by 1
B. Adds 1
C. Doubles the value
D. Leaves it unchanged
Join The Discussion