pointer questions c++ code example
Example: pointer questions c++
#include
using namespace std;
int main()
{
int x;
cout << "Enter a number\n";
cin >> x;
cout << *(&x) << "\n";
return 0;
}
#include
using namespace std;
int main()
{
int x;
cout << "Enter a number\n";
cin >> x;
cout << *(&x) << "\n";
return 0;
}