I want to make an array of pointers to (int) using "new".
int * a = new ???? ; // (int *) (99) ; ???
thx
/* If you think my question is unclear, please tell me. I am not an English speaker. */
Printable View
I want to make an array of pointers to (int) using "new".
int * a = new ???? ; // (int *) (99) ; ???
thx
/* If you think my question is unclear, please tell me. I am not an English speaker. */
int *a points to an array of integers, not an array of pointers to integers.
To allocate an array of pointers to integers:
int ** a = new int*[size];
I got it. thx.