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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, sdonachy7
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
image
Computers and Technology, 22.06.2019 23:00, cchotshot
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, bernicewhite156
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, teamroper35
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
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 in other subjects:

Konu
Mathematics, 25.09.2021 06:00