728x90 Research/Programming25 What Is Alignment What Is Alignment? Simple data types declared as variables are assigned addresses that are multiples of the size (in bytes) of the data type. Thus, variables of type long will be assigned addresses that are multiples of 4 (the bottom 2 bits of the address are 0). Structures are padded so that each element of the structure will end up at a naturally aligned address. For example:struct x_ { char a.. 2002. 12. 4. 이전 1 ··· 4 5 6 7 다음 728x90