fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n = 5;
  6. int *p = &n;
  7. cout << n << endl;
  8. cout << p << endl;
  9. cout << *p << endl;
  10. n += 1;
  11. cout << n <<","<< *p << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
5
0x7ffc2f93e954
5
6,6