new allocates an amount of memory needed to store the object/array that you request. In this case n numbers of int.
The pointer will then store the address to this block of memory.
But be careful, this allocated block of memory will not be freed until you tell it so by writing
delete [] array;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…