Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler

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.