fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int *ptr = nullptr;
  6. int number = 25;
  7. ptr = &number;
  8.  
  9. cout << ptr;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5348KB
stdin
Standard input is empty
stdout
0x7ffd0a3c8454