fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. const int r0 = 123;
  6. const int &r1 = 123;
  7. const int &r2 = 123;
  8. const int &r3 = r2;
  9.  
  10. printf("%p\n", (void *)&r0);
  11. printf("%p\n", (void *)&r1);
  12. printf("%p\n", (void *)&r2);
  13. printf("%p\n", (void *)&r3);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0x7fffe23b9674
0x7fffe23b9678
0x7fffe23b967c
0x7fffe23b967c