Skip to main content Contents Index
Prev Up Next \(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 13.6 Increment / Decrement Practice
Subsection 13.6.1 Increment Practice
Activity 13.5 .
Do you remember what this code prints to the screen?
admin ..... open in new window
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?