Page 1 of 1

Write a program called question3.cpp that performs the following tasks: (8 points) a. Declare two variables called v

Posted: Tue Jul 12, 2022 8:10 am
by answerhappygod
Write a program called question3.cpp that performs the followingtasks: (8 points) a. Declare two variables called value1 and value 2.Initialize value1 to 130. b. Declare the variable iPtr to be a pointer to anint;c. Assign the address of variable value1 to pointeriPtr.d. Print the value of the memory location pointed toby iPtr.e. Assign the value of the memory location pointed toby iPtr to variable value2.f. Print the value of value2.g. Print the address of value1.h. Print the address stored in iPtr. Is the valueprinted the same as the address of value1 (just thinkabout this)?