2 ms·
The function memset gets the length of the area to overwrite, how is it to know where the padding is?
by MichaelMoser123 8y ago
The function memset gets the length of the area to overwrite, how is it to know where the padding is?
- saagarjha 8y agoThe compiler knows the layout of your structure and can choose to elide memset calls or replace them with equivalent code.