0 votes
in General Knowledge by (744k points)
What are the specific cases of alignment for 1, 2, 4, and 8 bytes?

1 Answer

0 votes
by (744k points)
 
Best answer
1 byte: char
no restrictions on address

2 bytes: short
lowest 1 bit of address must be 0

4 bytes: int, float
lowest 2 bits of address must be 00

8 bytes: double, long, pointer
lowest 3 bits of address must be 000
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...