 # Question & Answer: 5. (6 pts) Consider the following code int a 3, b 5, *p sa, *p2; We can draw a diagram that shows the effect of this…..

5. (6 pts) Consider the following code int a 3, b 5, *p sa, *p2; We can draw a diagram that shows the effect of this code in memory, like this P2 a 33 b 1 Note that we are showing the contents of a and b, and we are showing where pl and p2 point. Since p2 is uninitialized, we show it pointing to a question mark If a regular int variable were uninitialized, we would show a question mark inside the box for the variable. Your job is to draw similar diagrams for the code below (see next page). Draw the diagrams as many times as needed for each question (that is, show all the intermediate steps). Please do not be messy and make your diagram very clear and readable

Don't use plagiarized sources. Get Your Custom Essay on
Question & Answer: 5. (6 pts) Consider the following code int a 3, b 5, *p sa, *p2; We can draw a diagram that shows the effect of this…..
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS \$13/PAGE  These are in C++

Q1-  