Skip to content
Related Articles

Related Articles

Improve Article

C | Data Types | Question 9

  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021

Output of following program?




#include<stdio.h>
int main()
{
    float x = 0.1;
    if ( x == 0.1 )
        printf("IF");
    else if (x == 0.1f)
        printf("ELSE IF");
    else
        printf("ELSE");
}

(A) ELSE IF
(B) IF
(C) ELSE


Answer: (A)

Explanation:

Quiz of this Question

Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.
My Personal Notes arrow_drop_up
Recommended Articles
Page :