Feb 03 2024 06:15 AM
#include <iostream> using std::cout; struct Bar { char name[3]; struct Foo { int a; int b; }; }; int main() { cout << sizeof(Bar); return 0; }
Usually it aligns so it's multiple of sizeof(int).