[C]Program to find whether the given machine is Little Endian or not


/*This program is to test whether the machine Little Endian or not */ #include<stdio.h> #include <netinet/in.h> int main (void) { unsigned short n=0xABCD; printf (“%X %X \n”, n , ntohs(n)); return 0; } compile the program . Run the program on the machine which is to be checked If the output is ABCD CDAB  thenContinue reading “[C]Program to find whether the given machine is Little Endian or not”