Question: C++ Given the next statements: 1 int int1; int int2 = 3; int *p = &int1; *p = 2; p = &int2; int2 = int2

C++  C++ Given the next statements: 1 int int1; int int2 =
3; int *p = &int1; *p = 2; p = &int2; int2
= int2 + *p; int1 = inti + 5 * *p; vono

Given the next statements: 1 int int1; int int2 = 3; int *p = &int1; *p = 2; p = &int2; int2 = int2 + *p; int1 = inti + 5 * *p; vono w Click Save and Submit to save and submit. Chek Save All Answers to LIUI Status: obovou w int *p = &int1; *p = 2; p = &int2; int2 = int2 + *p; int1 = int1 + 5 * *p; p = &int1; *p = *p + 10; int2 = *p - 9; Click Save and Submit to save and submit Chek Save All Answers to 10 *p = *p + 10; int2 = *p - 9; What is the value of int2 after the execution of line 6? O2 06 O 3 O 5 Click Save and Submit to save and submit. Click Save All Answers to save all a

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!