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
Virtuals
reverse linked list
on_off
Following order Indegree
Kth Smallest Element (with extra space)
temp_new
Odwrócone podciągi
Backpack with recursion
Pointer
C++ lesson