Question: need help with this in c++: int main() { srand(0); // Grading Note : Comment each task with the given description // Task 1. Create
need help with this in c++:
int main()
{
srand(0);
// Grading Note : Comment each task with the given description
// Task 1. Create a pointer to an int and set to to nullptr
// Task 2. Create a Dynamic array of 100 ints and assign the pointer in Task 1
// Task 3. Using a for loop - Load all 100 elements with values from the takeANumber() method
// Task 4. Using a for loop - Display all items in the array
// Task 5. Delete the dynamically created array
// Task 6. Repeat the above steps 1 - 4 but use Smart Pointers described in section 9.10
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
