Computers and Technology

Please explain this code line by line and how the values of each variable changes as you go down the code. #include
#include
using namespace std;

int main() {
int a[] = {0, 0, 0};

int* p = &a[1];
int* q = &a[0];

q=p;
*q=1;

p = a;
*p=1;

int*& r = p;
int** s = &q;

r = *s + 1;
s= &r;

**s = 1;

return 0;
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 23.06.2019 06:00, ashleyd198308
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, bevanscory123
What are loans to a company or government for a set amount of time
Answers: 1
Do you know the correct answer?
Please explain this code line by line and how the values of each variable changes as you go down the...

Questions in other subjects:

Konu
Mathematics, 20.01.2021 16:50
Konu
SAT, 20.01.2021 16:50
Konu
Biology, 20.01.2021 16:50