previous | start | next

## Functions as Black Boxes

- A function is a piece of code assigned to a name.
  - `sqrt()` -- computes the square root of a floating point number
  - `getline()` -- reads a line from the stream
- F unctions can be thought of as black boxes - you don't need to know the internals of the code.
- The execution of `main()` is temporarily suspended while a function is running.

previous | start | next