Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
offsetof
#include <stddef.h> #include <stdio.h> struct A { int a; virtual void dummy() {} }; struct B: public virtual A { int b; }; int main() { printf("offsetof(A, a) : %zu\n", offsetof(A, a)); printf("offsetof(B, b) : %zu\n", offsetof(B, b)); return 0; }
run
|
edit
|
history
|
help
0
DeltaX campus recruitment
Radix
precision and fixed point notation
NBiggestNum
QuickDoubly
-fno-elide-constructors
map_find
decode
fibonacci
HeatPump COP