I\'m trying to correct one of my homework my professor have returned to us. I\'v
ID: 3569245 • Letter: I
Question
I'm trying to correct one of my homework my professor have returned to us. I've done some, but still need help on two of them. My goal is to write out the correct output from a provided program. The question is in the following picture:
My attempt:
statement 1: -1 0 12
statement 2: -1 12
statement 3: -4
statement 4: -4
I'm having trouble determine the outputs from statement 5, 6, and 7. Need help on these three, thanks.
(9 points) The following code uses pointers and arrays in interesting ways. Write the output from this program in the space provided under the code. Also, note any mistakes using pointer or dynamically allocated memory.Explanation / Answer
statement 1 : -1 0 12
statement 2 : -1 12
statement 3 : -4
statement 4 : -4
statement 5 : 12
statement 6 : -4 -7
statement 7 : -12 3
-12 -4
grbage
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.