...
One would expect the the example below to output sizeof(size_t) + (sizeof(char) * 50)
. However, this may not be the case. Assuming , which would equal 54 (assuming sizeof(size_t)
is 4). However, the example may actually evaluate the size of buf
to be 56 due to padding.
...