Open In App

C | Data Types | Question 9

Like Article
Like
Save
Share
Report

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


Last Updated : 28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Similar Reads