Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the question (4a) (4b) and (5) by drawing diagram. Then, Please answer 4a , 4b and 5 Run the PointersLab.cpp code Add code

Please answer the question (4a) (4b) and (5) by drawing diagram.
image text in transcribed
image text in transcribed
Then, Please answer 4a , 4b and 5
Run the PointersLab.cpp code Add code to print the values of all the variables as indicated below and enter the results of running your code (verify the code is correct and makes sense). Enter the code to print these values before the process section of the code Copy and paste the code developed in step 2 below the process section in the lab code and enter the values again as they appear following the process section. 4a) Draw a diagram showing how the pointers reference each other before the process section. 4b) In your diagram, show how the process section changes the initial connections, by putting an X through no-longer-valid connections and redrawing arrows for new connections. Also, draw an X through any memory that has been freed in the process section. 5) Near the bottom of the main section, add code to free all memory that isn't automatically deallocated. DELIVERABLES: This sheet with all questions answered and copy of source code in a zip named Fille name: This program YOU FILL IN KERE Programer: YOUR NAUE HERE Date Written: in the past Date Last Revised: fl 5tep4 - Clean up - free a 11 nenory that isn't automatically freed ff ToDo you need to add code here to free menory return 0 b

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions