STRUCT_OFFSET

Run Settings
LanguageC++
Language Version
Run Command
#include <stdio.h> #include <stdint.h> struct bera{ char a; uint64_t b; }; struct vera{ char a; char b; bera c; }; #define STRUCT_OFFSET(struc, memeber) (&((struc *)0)->memeber)) int main() { printf("%llu, %llu", sizeof(vera), STRUCT_OFFSET(vera, c.b); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines