* c.texi (Structure Layout): Add structure alignment to index.
This commit is contained in:
parent
1a9338ee1a
commit
3462bb922a
2
c.texi
2
c.texi
|
@ -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
|
demands more alignment than it would get that way, C gives it the
|
||||||
alignment it requires by leaving a gap after the previous field.
|
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
|
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
|
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
|
maximum alignment of any of the fields in it. Then the structure's
|
||||||
|
|
Loading…
Reference in New Issue