fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 3;
  6. cout << &i << endl;
  7. int *p = &i;
  8. cout << p;
  9. return 0;
  10. }
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
0x7ffdff2a506c
0x7ffdff2a506c