- A "while" iteration statement allows yo to specify that a program should repeat an action while some condition remains true.
- UML's merge symbol (diamond) joins two flows of activity into one.
- A decision symbol has one transition arrow pointing to the diamond and tow more pointing out from it to indicate possible transitions from that point. In addition, each transition arrow pointing out of a decision symbol has a guard condition next to it.
- A merge symbol has two or more transition arrows pointing to the diamond and only one pointing from the diamond, to indicate multiple activity flows merging to continue the activity. None of the transition arrows associated with a merge symbol has a guard condition
- Counter-controlled iteration uses a variable called a counter to control the number of times a set of statements will execute. This often called definite iteration because the number of iterations is known before the loop begins executing
- An "unsigned int" variable can assume only nonnegative values. Variables of unsigned integer types can represent values form 0 to approximately twice the positive range of the corresponding signed integer types.
- You can determine your platform's maximum "unsigned int" value with the constant "UINT_MAX" from <climits>
- A variable declared in a function body is a local variable and can be used only form the line of its declaration to the closing right brace of the block in which the variable is declared.
- A local variable's declaration must appear before the variable is used; otherwise, a compilation error occurs.
- Integer division yields an integer result -- any fractional part of the calculation is truncated
- Adding two integers could result in a value that's too large to store in an "int variable." this is known as arithmetic overflow and causes undefined behavior, which can lead to unintended results and security problems.
- The maximum and minimum values that can be stored in an "int" variable are represented by the constants "INT_MAX" and "INT_MIN," respectively which are defined in the header <climits> there are similar constants for the other integral types and for floating-point types.
- To see these constants' values on your platform , open the headers <climits> and <cfloat> in a text editor.
- A program uses range checking to ensure that values are within a specific range