?
=?ISO-8859-1?Q?Erik_Wikstr=F6m?=
'new', if successful, returns the address to the newly
allocated memory. I printed the data sequentially starting from the
address returned by the 'new' operator. By analysing that data, I find
that there is no
padding data of 2 bytes present between 'int' and 'float' for the
following 'float result' to be aligned on
a 4 byte boundary. Thus, i found that only 26 bytes are allocated
without any padding.
new does the Right Thing (TM), which means that there are three
possibilities, 1) you have a defect implementation, 2) you
misinterpreted the data, or 3) you platform is not 4-byte aligned.