Question: Integer Pointers C++ Write a program that performs each of the following tasks: Create an integer variable called avar. Initialize it with the value 52.

Integer Pointers C++

Write a program that performs each of the following tasks:

Create an integer variable called avar. Initialize it with the value 52.

Create a variable of double type called amt. Initialize it with the value 13.14.

Display the location (address) of avar in memory.

Display the location (address) of amt in memory.

Create an integer pointer called iptr that points to avar.

Create an integer pointer called dptr that points to amt.

Print the value in avar using its pointer.

Store the value 10.10 in the location for amt without using the variable name amt in the statement

Please include a screenshot thanks

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!