go to previous page   go to home page   go to next page hear noise highlighting

Answer:

count = count + 1;

It increases count by one.


Incrementing count

If the answer is not clear, remember the two steps of an assignment statement:

Say that count is 2. When the above statement executes, first the expression count + 1 is evaluated, resulting in 3. Second the 3 is put in count.



QUESTION 3:

What does this statement do:

count = count + 2;

go to previous page   go to home page   go to next page