January 2025
Intermediate to advanced
768 pages
17h 26m
English
‘A program is like a maze of choices; the power of decision statements is what guides it to the right path.’– Donald Knuth.
This chapter explains the use of conditional statements in C. In the real world, we make many decisions that affect our lives. Similarly, in C programs, many decisions need to be taken to control the program flow and to execute selected specific actions. The decision-making is done using conditional statements. The conditional statements use test expressions that result in Boolean outcomes, true (non-zero values) and false (zero value). Based on the outcomes, the ...
Read now
Unlock full access