Greetings,
I’m able to find the size in bytes of a field after padding using the offsetof() macro.
Something like
struct a
{
char r ;
char s[ 255 ] ;
} ;
// the size in bytes of r after compiler padding is going to be
int lenR = offsetof( a, s ) - offsetof( a, r ) ;
But how can I find the size in bytes of the last field of a struct?
How about: