February 2022
Beginner
848 pages
22h 40m
English
So far in this book, you have seen simple programs where all programming effort is contained in main(). This works well for really small programs and applications. The larger and more complex a program gets, the longer the contents of main() become—unless you choose to structure your program using functions.
Functions give you a way to compartmentalize and organize a program’s execution logic. They enable you to split the contents of an application into logical blocks that are invoked sequentially.
A function is a subprogram that optionally takes parameters and returns a value, and it needs to be invoked to perform its task.
In this lesson you learn
■ The need for programming functions
■ Function ...
Read now
Unlock full access