If the binary equivalent of 5.375 in normalised form is - 0100 0000
1010 0000 1100 0000 0000 0000

what is the o/p of following code-
main()
{
float a=5.375;
char *p;
int i;
p=(char *)&a;
for(i=0;i<=3;i++)
printf("%02X",(unsigned char)p[i]);
}

O/P= 00 00 AC 40
Plz, Plz  anyone explain me in detail, how this o/p is coming?
Vijay..........

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to