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