There is a problem with msvc. I make a struct example.
struct example
{
char a[1];
short b;
}
when you look at this struct, it's size looks like 3 byte but when it is odd size, msvc add one more byte to make it even size.
I want it 3 byte size. How can I do it?
visual stuido 2022 c++14 msvc.
I tried other variable types and still not odd size.