fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6. int a = 1;
  7. int b = 2;
  8. int* p = inc(&a);//callsite 1
  9. int* q = inc(&b);//callsite 2
  10. ...
  11. }
  12.  
  13. int* inc(int* x){
  14. *x += 1;
  15. return x;
  16. }
  17.  
  18.  
  19.  
  20.  
Success #stdin #stdout 0s 5684KB
stdin
Standard input is empty
stdout
2 3