That is correct except for one extra 1 which seems to be a typo.
0 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
This will be the representation of int a = 7, assuming sizeof int is 4 bytes and a little endian machine (start address of memory is from the left).
Why is there a confusion?