Guest User

Untitled

a guest
Dec 16th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. double& rd2 = 2.0;//error: not an lvalue and reference not const
  2. int i = 2;
  3. double& rd3 = i;//error: type mismatch and reference not const
  4.  
  5. void inc(double& x)
  6. { x += 0.1; }
  7.  
  8. int i = 0;
  9. inc(i);
Add Comment
Please, Sign In to add comment