Question: Execute the following program. Explain the meaning of *ptr in the cout statement. What is the difference between the *ptr in statement int *ptr =
and the statement cout;>
#include
#include
using namespace std;
main()
{i n t w ; int *ptr = &w; cout"> cin>>*ptr; cout cout;>"whose> }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
