* c.texi (Structure Layout): Add structure alignment to index.

This commit is contained in:
Ineiev 2025-04-25 08:45:50 +00:00
parent 1a9338ee1a
commit 3462bb922a
1 changed files with 2 additions and 0 deletions

2
c.texi
View File

@ -6213,6 +6213,8 @@ consecutive bytes within the structure. However, if a field's type
demands more alignment than it would get that way, C gives it the
alignment it requires by leaving a gap after the previous field.
@cindex structure alignment
@cindex alignment of structures
Once all the fields have been laid out, it is possible to determine
the structure's alignment and size. The structure's alignment is the
maximum alignment of any of the fields in it. Then the structure's