O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Program Flow

As mentioned, the computer progresses through the program one instruction at a time, from top to bottom. If this were the only path through a program, it would severely limit the program’s efficiency. You would need to run many different programs to arrive at a given result.

To bake a cake, you would need many different recipes, in different books: one book to tell you how to make icing, one to tell you how to break eggs, another to tell you how to whisk the ingredients into a cake mixture, and yet another to tell you how to use the oven.

This is not efficient because the person doing the cooking would have to be constantly changing books, finding recipes, and generally following sets of unconnected steps. It is much more efficient ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required