Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
EBO
//clang 3.7.0 #include <iostream> struct Empty{}; struct A : Empty { int a; }; struct B { int b; Empty e; }; int main() { std::cout << "sizeof(A)=" << sizeof(A) << std::endl; //4 EBO std::cout << "sizeof(B)=" << sizeof(B) << std::endl; }
run
|
edit
|
history
|
help
0
function returning a function demo
Diamond example
MY FIRST OBJECT ORIENTED PROGRAM
BinaryGap, C++ - Find longest sequence of zeros in binary representation of an integer.
numeric_limits
template specialization inheritance solution
Расстановка восьми ферзей на шахматной доске так, чтобы ни один не угрожал другому - C++
NaN inside set
Делим на Ноль
Forgetting to check end