Assuming I have a structure like:
struct Struct { char Char; int Int; };
and sizeof( int ) more than one, and the compiler adds an addition for the Char member variable - is this the code generated by the compiler that allows you to change the values ββof padding bytes?
I mean, if I use pointer arithmetic and write some data in padding bytes surrounding the Char member variable, and then execute variable.Char = assignment, it is possible that the code generated by the compiler will also overwrite some of the padding bytes
c ++ c struct alignment padding
sharptooth
source share