Question: Which statement needs to be used to create a dynamic memory allocation for an array of a size entered by user in the code below;

Which statement needs to be used to create a dynamic memory allocation for an array of a size entered by user in the code below; int* p = NULL; int size; cout > size; // ??? p = (size) int new; p = int (size) new, o p = int new [size]; O None of the choices p = new [size] int; p = [size] new int; p = new int [size)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
