Hi all,
I am not so sure but you can use Unions for that..
With the help of unions
decalre the struct of union like
union a
{
int b,
char c,
char d
};
now assign the same address of c and d to b..
what this will do the value of b would now be assigned
to c and d (b higher 8 bits to c or d depending on big
endian or little endian)..
now print the address of c and d corresponding to the
values c and d..
Regards,
Ashwin Mittal.
--- karthik M keyan <[EMAIL PROTECTED]>
wrote:
> �Hai friends,
>
> Can anyone write a program in C that would say
>
> whether the given processor is Big endian or Little
> endian.
>
> regards
> karthik.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4823
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> 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:
http://docs.yahoo.com/info/terms/