- or download this
int func(int &at0, int &at1, int &at2);
func(i, *(new int(++i)), *(new int(i+2)));
- or download this
my $i = 5;
func($i+0, $i, ++$i, $i+0); # 5 6 6 6 for me.
# ^^^^ ^^
# rvalue lvalue
- or download this
my $i = 5;
func($i, ++i, $i+2); # 6 6 8 for me.
...
func($i+0, ++i, $i+2); # 5 6 8 for me.
^^^^
rvalue