Re: [Dev-C++] Shift operators portability
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Neszt T. <ne...@ss...> - 2003-09-23 11:06:02
|
> I have an AMD processor and no idea if it's big or little endian.
main() {
int x = 1;
if (*(char *)&x == 1) {
printf("little-endian\n");
} else {
printf("big-endian\n");
}
}
Regards,
Neszt Tibor
|