November 2013
Beginner
325 pages
9h 47m
English
A program is a collection of functions. When you run a program, those functions are copied from the hard drive into memory, and the processor finds the function called “main” and executes it.
Remember that a function is like a recipe card. If you began to execute the “Easy Broiled Chicken” card, you would discover that the third instruction says “Execute the Seasoned Bread Crumbs recipe,” which is explained on another card. A programmer would say, “The Easy Broiled Chicken function calls the Seasoned Bread Crumbs function.”
Figure 5.1 Recipe cards
Similarly, main() can call other functions. ...
Read now
Unlock full access