Skip to Main Content
Programming in C, Third Edition
book

Programming in C, Third Edition

by Stephen G. Kochan
July 2004
Beginner to intermediate content levelBeginner to intermediate
576 pages
12h 3m
English
Sams
Content preview from Programming in C, Third Edition

Chapter 6. Making Decisions

IN CHAPTER 5, “PROGRAM LOOPING,” YOU LEARNED that one of the fundamental properties of a computer is its capability to repetitively execute a sequence of instructions. But another fundamental property lies in its capability to make decisions. You saw how these decision-making powers were used in the execution of the various looping statements to determine when to terminate the program loop. Without such capabilities, you would never be able to “get out” of a program loop and would end up executing the same sequence of statements over and over again, theoretically forever (which is why such a program loop is called an infinite loop).

The C programming language also provides several other decision-making constructs, which ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming in C, Fourth Edition

Programming in C, Fourth Edition

Stephen G. Kochan
C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie
C How to Program, Fifth Edition

C How to Program, Fifth Edition

P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Publisher Resources

ISBN: 9780768689068Purchase book