answersLogoWhite

0

The Structure size can be calculated by adding the memory requirements of each individual structure members. This is applicable for the word alignment of one byte. The word alignment of one byte can be set by the following statement

#pragma pack(1).

Answer

Don't try to calculate anything, use sizeof.

User Avatar

Wiki User

15y ago

What else can I help you with?