Inactive Tutor answered 03/18/20
The function should return 11. The first operation
x = x+y changes the value of x to 3. The next operation does not specify any precedence. So C++ precedence rules take effect. * has greater precedence than +. So the operation is equivalent to z = (2 * x) + y = (2 * 3) + 5 = 11