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
CPP - ex 5 - solution
on_off
WeekD
congruence modulo equations (together with a simple BigInteger class)
Finding Ocean
N Qeens problem
Job Scheduling
triangle_ isosceles
fibonacci
IndiSort