Answer to Question #185660 in C++ for VASANTH V

Question #185660

Develop a C++ program to read the value from user and display the address using wild pointer.


1
Expert's answer
2021-04-27T17:18:53-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS