fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a = 3.14, b = 4.25, *p1, *p2;
  6. p1 = &a;
  7. p2 = &b;
  8. cout << &a << " " << &b << endl;
  9. }
  10.  
  11.  
Success #stdin #stdout 0s 4532KB
stdin
Standard input is empty
stdout
0x7ffd9bcd8400 0x7ffd9bcd8408