how is that possible can u explain? how it prints whether it is a big endian or little endian

Ashutosh N Naik <[EMAIL PROTECTED]> wrote:


> Can anyone write a program in C that would say
>
> whether the given processor is Big endian or Little endian.

if( *(long *) "\200\0\0\0\0\0\0\0"<0)
printf("Buig Endian\n");
else
  printf?("Little Endian\n");

  * --
    Ashutosh Naik
    Teneoris Networks India Pvt. Ltd
    www.teneoris.com






To unsubscribe : [EMAIL PROTECTED]




Yahoo! India Matrimony: Find your partner online.

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to