How to check the machine is little endian or big endian

The below is the code to test the machine is running on little or big endian

Github Link :
 https://github.com/vaneeswaran/my_c_codes/blob/master/bit_operations/test_little_or_big_endian.c

Comments