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

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!