Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

LANGUAGE C++ Compile and run this program. Determine why it gives the results it

ID: 3938562 • Letter: L

Question

LANGUAGE C++

Compile and run this program. Determine why it gives the results it does, and answer the questions posed in the output.  Make a text file with an explanation of what each section is demonstrating, with answers to all the questions, and submit that as part of your lab work.

It may help to put the code next to the output so you can study the output and make sense of what the code is doing.  You may also find it helpful to use the debugger and single-step through the program, examining the output after each statement.

Name your file pointers_questions.txt  (or pointers_questions.docx)

==================THE SAMPLE CODE IS POSTED BELOW=================

Explanation / Answer

#include using namespace std; int main() { int i = 5; int data[5] = {10, 20, 30, 40, 50}; int *p = &i; // point p to the address of i. cout