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