fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(const int& a) {
  5. cout<<a + 5<<endl;
  6. }
  7.  
  8. int main() {
  9. int* b = new int();
  10. *b = 5;
  11. foo(*b);
  12. cout<<b<<endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout
10
0x2b61628edc20