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