In C89 and C99: Is sizeof on anonymous structs standard conformant?
sizeof(struct{long l; void* ptr;})
The expression sizeof(struct{long l; void* ptr;}) is syntactically valid in all versions of the C standard. Syntactically, sizeof(struct{long; void *ptr;}) conforms to sizeof ( type-name ). A type name is syntactically a declaration of a function or an object of that type that omits the identifier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With