Compiler is little endian so as u have typecasted it to char pointer then 0100 0000 1010 1100 0000 0000 0000 0000 means 4 0 A C 0 0 0 0 it will show o/p byte by byte from LSB.
On Sun, Aug 21, 2011 at 5:47 PM, Vijay Khandar <[email protected]>wrote: > Thank u very much Abhishek for this link, Now I got it ...........But also > u explain me in following.......... > 5.375 is represents 0100 0000 1010 1100 0000 0000 0000 0000 means 4 0 A C 0 > 0 0 0in Hex now how it prints 00 00 AC 40 means can it accepts fm right to > left or L to R ........I m little bit confusing in p[0] p[1] p[2]and p[3] > how these r printing 0 0 AC 40............plz Explain > On Sun, Aug 21, 2011 at 4:57 PM, Abhishek > <[email protected]>wrote: > >> check this link.. >> http://en.wikipedia.org/wiki/Single_precision_floating-point_format >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/algogeeks/-/OTIkO_pXQMgJ. >> >> 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. >> > > -- > 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. > -- With regards ............ Puneet -- 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.
