Control Structures in C: Getting Started with Control Structures
C 17
| Beginner
- 17 videos | 1h 54m 18s
- Includes Assessment
- Earns a Badge
A control structure in C is any code construct that changes the flow of control, such as the order of execution in a program. The three main types of control structures in C are decision-making control structures, looping control structures, and unconditional control structures. Decision-making control structures include if-else blocks and switch statements. You will start this course by working with the if statement control structure. This checks whether a condition is satisfied or not, and returns an output based on that. You will then use the if-else-if ladder to create multiple conditions that will be checked in order. The code block associated with the first condition that is satisfied will be executed, and subsequent conditions will not even be checked. Finally, you will learn about the ternary operator, which makes use of the ? and : symbols to create an if-else block and store the result in a variable. Upon completion of this course, you'll be able to work with control structures to change the flow of execution of a C program, use if and else conditions, and employ the ternary operator in assignments and expressions
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courseoutline three types of control structures used in the C languagedemonstrate the use of basic if statementsdemonstrate the use of relational operators with if statementsdemonstrate how to use logical operators to chain relational operatorsidentify common gotchas of if statementsdemonstrate the use of if-else blocksdemonstrate the use of nested if-else blocksdemonstrate how to run code with nested if-else blocks
-
outline the if-else if control structuredemonstrate how to run code with the if-else-if ladderillustrate the mechanics of the switch statementdemonstrate how to run code with switch statementsdemonstrate the use of switch statements in various scenariosdemonstrate the use of characters in switch statementsdemonstrate the use of the ternary operator to shorten if-else blockssummarize the key concepts covered in this course
IN THIS COURSE
-
2m 6s
-
6m 40s
-
7m 55s
-
6m 55s
-
4m 59s
-
8m 46s
-
9m 17s
-
6m 23s
-
7m 12s
-
4m 51s
-
8m 39s
-
7m 17s
-
8m 30s
-
9m 16s
-
5m 28s
-
7m 2s
-
3m 2s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.