+ 1

What does this statement do::p = new int[20];

13th Sep 2017, 12:34 PM
M.Saariya Faiz
M.Saariya Faiz - avatar
4 Respostas
13th Sep 2017, 12:56 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Read the course, the part about pointers, it explains it very well.
13th Sep 2017, 12:55 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
int * p = new int[20]; allocate on success a contiguous space of 20 integers
14th Sep 2017, 7:23 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
I asked this question after going through the pointers part of the course C++ Tutorials
14th Sep 2017, 6:29 AM
M.Saariya Faiz
M.Saariya Faiz - avatar