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
DailyExchRate
MyStringv2
HashRK
IceCream
hilbert
Double_wrapper gcc
3 and 7 in a row
ListCPP
Nieparzyste w macierzy
References Pt 1 C++