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
Get step-by-step solutions from verified subject matter experts
