samedi 4 avril 2015

Float Variable showing different value than that defined

I defined a global variable float type




`float x=0.0;




And Now when I am using this variable in my




`main()




It is showing a value of -nan.Similarly if I define a int variable like




`int x=0;




It shows a value of -21478950 ie INT_MIN Why?`


Aucun commentaire:

Enregistrer un commentaire