The __alignof__ operator allows you to inquire about how an object is aligned, or the minimum alignment usually required by a type. Its syntax is just like sizeof.
For example, __alignof__ (float) is 4.
If the operand of __alignof__ is an object rather than a type, its value is the required alignment for its type, taking into account any minimum alignment specified with an alignment related __attribute__ extension.