Home » »Unlabelled » How to find out if a processor is Little-Endian Big-Endian How to find out if a processor is Little-Endian Big-Endian Soumen Karak 22:32 #include<stdio.h> main() { int num = 1; if(*(char *)&num == 1) { printf("\nLittle-Endian\n"); } else { printf("Big-Endian\n"); } Share: Facebook Twitter Google+ StumbleUpon Digg Delicious LinkedIn Reddit Technorati
0 comments:
Post a Comment