Originally Posted by spirit creates a pointer to a first element of array with size == 11 Ouch, this statement is online for days and nobody disagrees loudly? int *p = new int[10]; This reserves memory for exactly 10 integers. 0 ... 9, i.e. size == 10.
Forum Rules
Bookmarks