fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int val = 100;
  6. int &ref = val;
  7. int *ip = &val;
  8. int *ipRef = &ref;
  9. cout << (ip == ipRef) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
1