Question: C++ code please and not too advanced please Write a main() program that performs the following (in the sequence mentioned): Declare three integer variables x

 C++ code please and not too advanced please Write a main()

C++ code please

and not too advanced please

Write a main() program that performs the following (in the sequence mentioned): Declare three integer variables x = 10: y = 20 and z. Declare a pointer to integer intPtr to point to x. Print the value of x using intPtr Increment the value of x by 1 using intPtr Print the value of x using * and & Make intPtr point to y and print the value and address of y using intPtr Assign the value of x + y to z using pointers. Then print the address and value of z. Provide a screenshot that shows the address of y and the value of intPtr using the debugger

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!