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
cppPyBatScoreSOLID
Exploring the Transform Function and Operator Classes
C++ virtual dispose
Translating binary to decimal numbers
ამოცანა#1---------------From adjacency matrix to adjacency list.
Test 19(2020)
obracanie tablicy
MINVEST
constructing object on first use as return value of (pointer to) object-returning function
Left view of a tree