I m getting equal as output...
My doubt is float compared with double in if statement,
then it should b unequal right??
Is it something like type conversion?? I want just to clarify this point..
Code:int main() { float a=7.0; //6.9999999 a=a+0.0000001;// 7.0f if(a==7.0) printf("equal"); else printf("unequal"); getchar(); }