Mark | Description | Usage and Examples |
; | semicolon
| 1) Ends a statement: int var1; 2) Separates descriptive names and values in predefined value pairs in input type variable declarations: |
() | parentheses | 1) In expressions, group values to modify the order of operations: 2) Enclose descriptive names of variables and functions: |
, | comma
| 1) Separates formal parameters in function definition: 2) Separates arguments at function call:
|
. | dot | Separates module and variable names when referring to an external variable:
|
" "
| double quotation marks | Enclose text strings:
|
' '
| single quotation marks | Enclose characters: |
[] | square brackets | Enclose array indices:
|
{} | curly brackets
| 1) Compound statement brackets. Enclose a block of statements, such as function body, a While loop body or an If statement body: if(price > high) 2) Enclose predefined value pairs in input type variable declarations: |
Comments