Hi all,
I am getting some garbage values when i executed this program.
i know this has some thing to do with the way floating point values are stored.Code:
void main()
{
float f;
scanf("%f",&f);
printf("%d", *((int *)&f));
}
but can somebody please explain what exactly is happening?
thanks.