Namespaces
Variants
Actions

Talk:c/types/offsetof

From cppreference.com
< Talk:c‎ | types

is offsetof a preprocessor constant expression?

the standard says integer constant expression (edited this page to match), so no, not in the spec. --Cubbi (talk) 06:51, 14 November 2017 (PST)

Should mention be made here that it is undefined on bitfield structs (as it measures bytes) or leave the bitfield documentation to cover the case there?