+ 2
//Find output of following program and explain why
#include<stdio.h> #include<conio.h> void main( ) { float x=1.1; double y=1.1; if(x==y) printf("Hi"); else printf("Bye"); getch( ); }
2 Answers
0
undefined behaviour !
#include<stdio.h> #include<conio.h> void main( ) { float x=1.1; double y=1.1; if(x==y) printf("Hi"); else printf("Bye"); getch( ); }