| A statement:
* one step of code, which may take more than one line
* ends with a semicolon (the ; character)
* it is OK to have multiple statements on one line
Program execution is statement by statement, one statement at a time
* from top to bottom (if more than one statement on a line, left to right)
Within a statement, execution of the individual pieces is not necessarily left to right
* there are concepts called operator precedence and associativity that determine the order of operations within a statement
A statement:
* one step of code, which may take more than one line
* ends with a semicolon (the ; character)
* it is OK to have multiple statements on one line
Program execution is statement by statement, one statement at a time
* from top to bottom (if more than one statement on a line, left to right)
Within a statement, execution of the individual pieces is not necessarily left to right
* there are concepts called operator precedence and associativity that determine the order of operations within a statement
|
Facebook