On Mon, Jun 14, 2010 at 5:13 AM, Sundeep Singh <[email protected]>wrote:
> @saurav: your code will always print 2 irrespective of the system's
> endianness!
>
> correct thing to do is:
> printf("%d", *(char *) (0x00000002))
>
> --Sundeep.
>
>
>
... dereferencing a very low address pointer, are you sure?
--
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.