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 40sIn this video, you will learn how to outline three types of control structures used in the C language. FREE ACCESS
-
7m 55sIn this video, you will learn about the use of basic if statements. FREE ACCESS
-
6m 55sIn this video, learn how to use relational operators with if statements. FREE ACCESS
-
4m 59sIn this video, you will learn how to use logical operators to connect relational operators. FREE ACCESS
-
8m 46sIn this video, find out how to identify common mistakes with if statements. FREE ACCESS
-
9m 17sLearn about the use of if-else blocks. FREE ACCESS
-
6m 23sLearn about the use of if-else blocks within other if-else blocks. FREE ACCESS
-
7m 12sIn this video, you will learn how to run code with if-else blocks nested inside each other. FREE ACCESS
-
4m 51sDuring this video, you will learn how to outline the if-else-if control structure. FREE ACCESS
-
8m 39sIn this video, you will learn how to run code with the if-else-if ladder. FREE ACCESS
-
7m 17sUpon completion of this video, you will be able to illustrate the mechanics of the switch statement. FREE ACCESS
-
8m 30sIn this video, you will learn how to run code with switch statements. FREE ACCESS
-
9m 16sLearn how to use switch statements in various scenarios. FREE ACCESS
-
5m 28sIn this video, you will learn about the use of characters in switch statements. FREE ACCESS
-
7m 2sLearn how to use the ternary operator to shorten if-else blocks. FREE ACCESS
-
3m 2s097f01e9-2d12-429e-974a-3ec42c4d9e53 FREE ACCESS
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.