Question: What does the new operator do in the following statement? double * num = new double [ 1 0 ] ; Question 1 3 options:

What does the new operator do in the following statement?
double* num = new double[10];
Question 13 options:
It allocates an array of size 10, and yields a pointer to the starting element.
It allocates enough memory for a double value and initializes it with 10.
It allocates enough memory for 10 pointers.
This is not a legal statement, it will generate a compiler error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!