Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 379 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 379 Bytes

2.5

First, please read the c file: show_bytes

int val = 0x87654321;
byte_pointer valp = (byte_pointer) &val;
show_bytes(valp,1); // A
show_bytes(valp,2); // B
show_bytes(valp,3); // C

A. Little endian: 21, Big endian: 87. B. Little endian: 21 43, Big endian: 87 65. C. Little endian: 21 43 65, Big endian: 87 65 43.