how is that possible can u explain? how it prints whether it is a big endian or little endian
Guys!,
See this code
main()
{
int x=1;
if((*(char *)&x)==1)//Little Endian
else //Big endian
}
This is much, much easier to understand.
Yahoo! India Matrimony: Find your life partner
online.
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4883
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
