Question: Not entirely sure if answer is correct. 4 Memory Management Answer the questions on the right with respect to 1. dynamically allocating a native array
Not entirely sure if answer is correct.
4 Memory Management Answer the questions on the right with respect to 1. dynamically allocating a native array of 5 zero-initialized Integers, then 2. altering values in the array, and then 3. deleting the allocated memory 1 point Part 1: Select all the C++ statements below that dynamically allocating a native array of Szero-initialized integers int - ptr = new int[510); int ptr = new int[51 auto sptr - std:make_uniquecint>(5) auto setr - stdake_unique int[]>(5); int ptr - new int(5); auto str = std::make_unique int[5]>(e) int ptr - new int
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
