fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int a = 7;
  5. int &b = a;
  6.  
  7. std::cout << &a << ' ' << &b << std::endl;
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
0xbff6343c 0xbff6343c