_Alignof operator
_Alignof operator
Queries the alignment requirement of its operand type.
Syntax
_Alignof( type-name ) | (since C11) |
This operator is typically used through the convenience macro alignof
, which is provided in the header stdalign.h
.
Explanation
Returns the alignment requirement of the type named by type-name. If type-name is an array type, the result is t