0
shorthand assignments operators, how do they work?
Can someone help explain how shorthand assignment operators
2 Answers
+ 7
x += y  # x=x+y
x -= y  # x=x-y
x *= y  # x=x*y
x /= y  # x=x/y
x %= y  # x=x%y
x **= y  # x=x**y 
It's quite nicely covered in the Ruby tutorial
0
@pixie is x**y =x*x*y or x* (*y) where (*y) is a pointer?






