Question: C++ For the code below, describe what is happening at each line of code My work so far: The first is setting the first element

C++

For the code below, describe what is happening at each line of code

My work so far:

The first is setting the first element of the array to 1

next, the second element of the array is set to 4

the third set of code sets the third element to whatever the first element was (1) [with the exception of 2, 4 I found, don't know why]

The next part gets really funky.

This is what is prints out to the terminal:

C++ For the code below, describe what is happening at each line

of code My work so far: The first is setting the first

thanks for your help

Numbers: 1 4 4 21928 4 5 #include using namespace std; int main() int numbers [6] ; int * P; P = numbers; *P = 1; p++; *P = 4; p = &numbers [2] ; *p = numbers [0]; p = numbers + *p; *P = 4; P = numbers+1; *(p+4) = 5; cout

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!