204k views
3 votes
If x is an int, which of the following statements adds 5 to the current value of x and stores the new value back in x?

User Nha
by
7.5k points

1 Answer

4 votes
x += 5;

----------------------------
User Lorenzo Bassetti
by
7.9k points