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
seh exception
xyz1_1 programm
c++
bitfields_msvc
students grade
Iterate_Variac_Template
Project
Hangman
Regex pipe and tabs c++
MSVC noexcept - works