100points question.... answer if u can... it's a challenge
Attachments:
Answers
Answered by
1
x+=y --> x=x+y
x+=y = 30 value of x is 30
y - =z --> y=y-z
y - =z = 5 value of y is 5
z+=x --> z=z+x
z+=x = 5+30 value of z is 35
++x --> Preincrement operator Here,The prefix increment operator immediately increases or decreases the current value of the variable. This value is then used in the expression.
The value of x is 31
y-- --> Postfix decrement operator In Post-decrement first value of variable is used in the expression and then decrement the value of variable.
The value of y is 4
z++ --> Preincrement operator Here,The prefix increment operator immediately increases or decreases the current value of the variable. This value is then used in the expression.
The value of z is 36
Answered by
0
x+=y --> x=x+y
x+=y = 30 value of x is 30
y - =z --> y=y-z
y - =z = 5 value of y is 5
z+=x --> z=z+x
z+=x = 5+30 value of z is 35
++x --> Preincrement operator Here,The prefix increment operator immediately increases or decreases the current value of the variable. This value is then used in the expression.
The value of x is 31
y-- --> Postfix decrement operator In Post-decrement first value of variable is used in the expression and then decrement the value of variable.
The value of y is 4
z++ --> Preincrement operator Here,The prefix increment operator immediately increases or decreases the current value of the variable. This value is then used in the expression.
The value of z is 36
[
Similar questions