Skip to main content
Logo image

Section 13.6 Increment / Decrement Practice

Subsection 13.6.1 Increment Practice

Subsection 13.6.2 Predict the Result

Activity 13.6.

Now look at the part that is commented out - basically the same printf() statements as above, but this time all in one line. What do you expect this to print to the screen?
Be sure to think about this first, before actually running the code.

admin.....open in new window

Subsection 13.6.3 Try It Out!

Activity 13.7.

Okay, now you can hit the Run button. Is this what you predicted?

admin.....open in new window

What happened?