How to check Big Endian and Little Endian - Bit Manipulation Firmware Interview

Опубликовано: 27 Январь 2022
на канале: Firmware
603
17

Here we learn how to check Big-Endian and Little-Endian byte ordering, also known as Endianness, of a machine. This is a common interview question for software/firmware/embedded roles that tests your concepts of XOR and Bit Manipulations.
In a big-endian system, the most significant byte in the number will be stored in the Lowest memory address allocated for the variable.
So, we are storing the left-most byte in the lowest address and the right-most, the least significant byte in the highest memory address.
This is similar to how we humans write as well.
In a little-endian system, things are the exact reverse.
The most significant byte will be stored in the highest memory address/

See Bit Distance problem here:    • Count number of bits which are differ...  

See Bit Manipulation Interview Preparation Series here:
   • Bit Manipulation Interview Series  

You could follow us on Facebook and Instagram:
Facebook :   / firmwarecode  
Instagram :   / firmwarecode  

#bitmanipulation #bitalgorithm