Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
ThreadContext
Primality test Fermat primality test
BinTraversal
Stok sinifi
Get all anagrams from given words
AVL - ith element
tes
Count edges in a graph
Programa 3(Creo que ya esta)
Stats - Central Limit Theorem - Normal Distribution with multiple items
stackse - search stackoverflow differently
Please log in to post a comment.