Develop a C++ program to read the value from user and display the address using wild pointer.
#include <iostream>
using namespace std;
int main()
{
int i;
int *pInt = &i;
cout << "Enter an integer value: ";
cin >> *pInt;
cout << "The value " << *pInt << " is stored at the address "
<< pInt << endl;
}
Comments
Leave a comment