Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strange builtin_offseof behavior
//g++ 5.4.0 #include <iostream> struct wrap { int i; }; struct A { int i; wrap w; virtual void vf(){}; }; void f() { (void)__builtin_offsetof(A, i); (void)__builtin_offsetof(A, w.i); } int main() { f(); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
1234
Dar
Segment Tree
Longest Consecutive Subsequence
ttt
riemann
at_multimap_example
Funny Saying
horse aand goat working
Fundamentos de programación. Tema 7. Ejercicio 6. Con funciones.