fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a = 5;
  7. int b = 9;
  8. int c = 6;
  9. int *p = &a;
  10. cout << p << endl;
  11. int **n = &p;
  12. *n = &b;
  13. cout << p << endl;
  14. p = &c;
  15. cout << p << endl;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
0x7ffea0eaccdc
0x7ffea0eacce0
0x7ffea0eacce4