Question: 1) If a program uses dynamic memory allocation to create an array, then the number of elements in that array must be determined at compile
1) If a program uses dynamic memory allocation to create an array, then the number of elements in that array must be determined at compile time (not at run time). That is, the array size must be determined when the programmer writes the code, not when the program executes.
Select one:
True
False
2)
When a program no longer needs its dynamically allocated memory, it should give it back to the system by using the return operation.
Select one:
True
False
3) A range-based for loop executes the body of the loop once for each element in the array.
Select one:
True
False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
