A great lathe operator commands several times the wage of an average lathe operator, but a great writer of software code is worth 10,000 times the price of an average software writer. Bill Gates

Verify bit endian or little endian

Language Java | Level Intermediate | Category Algorithms | August 3, 2015 10:57 pm


Algorithm Problem Description

Little endian and big endian are ways to store multi-byte data types. Little endian store the last byte of binary representation of the multibyte store first. The big endian store first byte of binary representation of the multibyte store first.

Write a program to find whether machine is big endian or little endian.

Output

          	        
          	        

Little-endian

          	        
          	        				    


Comments



Please login to add comments.