Close. When it grows, the array size doubles in size plus 4. An array with 1000 scalars in it could take up as much as
Array overhead + ( 999*2+4 ) * size of a pointer + 1000 * size of the scalars
In reply to Re^3: mem usage
by ikegami
in thread mem usage
by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |