3 ms·
I would actually go further and say that writing to padding is legal C, period, independent of platform. It just doesn't have to actually do anything. (In an ex
by saagarjha 7y ago
I would actually go further and say that writing to padding is legal C, period, independent of platform. It just doesn't have to actually do anything. (In an extreme example, a call to memset can do piecemeal writes around the padding to only touch the parts of a structure that will be accessed, which can be an issue if you actually want to scrub those bytes.)