subject

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;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
You know the right answer?
Please explain this code line by line and how the values of each variable changes as you go down the...
Questions
question
Biology, 20.06.2020 18:57
Questions on the website: 13722362