Decision Making in C: if, if-else, and switch Statements
Every interesting program needs to make decisions — do this if a condition holds, do something else otherwise. C provides two main tools for this: the if family of statements and the switch statement. This is Post 5, closing out the Unit I series on C fundamentals. The if Statement if (condition) { // executes … Read more