Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started