Can anybody give a full explanation
On Sat, Jul 9, 2011 at 10:49 PM, sunny agrawal <[email protected]>wrote: > try to find out the binary representation of float value 5.2 > > > On Sat, Jul 9, 2011 at 10:46 PM, Sangeeta <[email protected]> wrote: > >> int main(){ >> int i; >> float a=5.2; >> char *ptr; >> ptr=(char *)&a; >> for(i=0;i<=3;i++) >> printf("%d ",*ptr++); >> } >> >> output: >> 102 102 -90 64.explain? >> >> -- >> 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. >> >> > > > -- > Sunny Aggrawal > B-Tech IV year,CSI > Indian Institute Of Technology,Roorkee > > > -- > 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. > -- *Regards,* *Piyush Kapoor,* *CSE-IT-BHU* -- 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.
