Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Struct packing
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> struct MyStruct { int* pA; bool bB; int* pC; bool bD; }; struct MyStructPacked { int* pA; int* pC; bool bB; bool bD; }; int main() { std::cout << sizeof(MyStruct) << std::endl; std::cout << sizeof(MyStructPacked) << std::endl; }
run
|
edit
|
history
|
help
-1
vector of bool
template test
problem_solution5
VC++ windows exception
Hangman
Title
MSVC bug in __fastcall implementation !!!
123
Hangman
Static cast of Enum