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;
Question options:
It allocates an array of size and yields a pointer to the starting element.
It allocates enough memory for a double value and initializes it with
It allocates enough memory for 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
