fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x = 1;
  7. int *ptr = &x;
  8. cout<<ptr<<endl;
  9. cout<<&x<<endl<<*ptr;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
0x7ffc3e3cf44c
0x7ffc3e3cf44c
1