Question
Comment on the output of this C code?   int main()   {       float f1 = 0.1;       if (f1 == 0.1f)           printf("equal\n");       else           printf("not equal\n");   }
Answer: Option A
Was this answer helpful ?
0.1f results in 0.1 to be stored in floating point representations.
Output:
$ cc pgm5.c
$ a.out
equal
Was this answer helpful ?
More Questions on This Topic :
Question 8. %f access specifier is used for? ....
Question 10. Select the odd one out with respect to type? ....
Submit Solution