Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double& rd2 = 2.0;//error: not an lvalue and reference not const
- int i = 2;
- double& rd3 = i;//error: type mismatch and reference not const
- void inc(double& x)
- { x += 0.1; }
- int i = 0;
- inc(i);
Add Comment
Please, Sign In to add comment