Question: Create the following C++ Code: a. (1 point) Declare and assign values to variables i. Declare an integer variable called myInt and assign the value

Create the following C++ Code:

Create the following C++ Code: a. (1 point) Declare and assign values

a. (1 point) Declare and assign values to variables i. Declare an integer variable called myInt and assign the value 15 to it. ii. Declare a pointer variable called myPointer using the kreieremce operaior (*) and assign ii io the nemory location of myInt using the address-of operator (&) b. (1 point) Print to console i. Print the memory location of myInt (remember the address-of operator!) and the value of myPointer. ii. Print the value of myInt and the value pointed to by myPointer (remember the dereference operator!) c. (1 point) Change values and print to console i. Change the value of myInt to 10 ii. Print the memory location of myInt (remember the address-of operator!) and the value of myPointer. ii. Print the value of myInt and the value pointed to by myPointer (remember the dereference operator!)

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!