- Recall our main function declaration:
int main()
- The int expresses the value type
expected by the caller. In this case, the caller expect an integer.
- The parentheses tell we're not accepting any parameters.
- What is parameters (or arguments)? Recall the function in math.
For example: f(x) = 2x + 3. This function takes
one parameter: x.
- Functions will be discussed further in latter chapters.
|