Skip to content

Commit 532242a

Browse files
authored
docs: clarify description regarding default size.
Clarify the description regarding the default size in the documentation related to Storage and Alignment of Structures.
1 parent 47692f9 commit 532242a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/c-language/storage-and-alignment-of-structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ where *n* is the packing size expressed with the /Zp[*n*] option and *item* is t
2727

2828
To use the `pack` pragma to specify packing other than the packing specified on the command line for a particular structure, give the `pack` pragma, where the packing size is 1, 2, 4, 8, or 16, before the structure. To reinstate the packing given on the command line, specify the `pack` pragma with no arguments.
2929

30-
Bit fields default to size **`long`** for the Microsoft C compiler. Structure members are aligned on the size of the type or the /Zp[*n*] size, whichever is smaller. The default size is 4.
30+
For the Microsoft C compiler, bit fields default to a size of 4 bytes, which is a **`long`** data type. Structure members are aligned on the size of the type or the /Zp[*n*] size, whichever is smaller.
3131

3232
**END Microsoft Specific**
3333

0 commit comments

Comments
 (0)