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
Dij. Algo
inheritance
Pairs having sum equal to target
Test 12(2021)
segmentedSieveD
ad
BOOST_ENABLE_ASSERT_HANDLER defined
Top view of a Binary tree
fundamental type sizes
Expected types