110. Wap to check if the system is big endian or little endian
#include<stdio.h>
int
i = 255;
unsigned
char *cp;
void
main()
{
cp=&i;
if(*cp==255)
printf("Little
Endian\n");
else
printf("Big
Endian\n");
}
Comments
Post a Comment