Computer Science, asked by Kunaltomar2136, 9 days ago

if x=5 and y=8 find z , z= x++ + ++x - ++y

Answers

Answered by ahmedhabeeb556
0

Answer:

3

Explanation:

++x changes the value of x before it is used (pre-increment).

x++ changes the value of x after it is used (post-increment).

1) x++ = 5 the value of x now = 6

2) ++x = 7

3) ++y = 9

z = 5 + 7 - 9 = (12 - 9) = 3

Similar questions