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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply