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 course
    outline three types of control structures used in the C language
    demonstrate the use of basic if statements
    demonstrate the use of relational operators with if statements
    demonstrate how to use logical operators to chain relational operators
    identify common gotchas of if statements
    demonstrate the use of if-else blocks
    demonstrate the use of nested if-else blocks
    demonstrate how to run code with nested if-else blocks
  • outline the if-else if control structure
    demonstrate how to run code with the if-else-if ladder
    illustrate the mechanics of the switch statement
    demonstrate how to run code with switch statements
    demonstrate the use of switch statements in various scenarios
    demonstrate the use of characters in switch statements
    demonstrate the use of the ternary operator to shorten if-else blocks
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 6s
    UP NEXT
  • Playable
    2. 
    Understanding C Control Structures
    6m 40s
  • Locked
    3. 
    Using if Statements in C
    7m 55s
  • Locked
    4. 
    Using Relational Operators with if Statements in C
    6m 55s
  • Locked
    5. 
    Chaining Relational Operators with Logical Operators
    4m 59s
  • Locked
    6. 
    Exploring Quirks of if Statements in C
    8m 46s
  • Locked
    7. 
    Using if-else Conditional Blocks in C
    9m 17s
  • Locked
    8. 
    Creating Nested if-else Blocks in C
    6m 23s
  • Locked
    9. 
    Exploring Nested if Statements in C
    7m 12s
  • Locked
    10. 
    Introducing the else-if Block in C
    4m 51s
  • Locked
    11. 
    Using the if-else-if Ladder in C
    8m 39s
  • Locked
    12. 
    Understanding the switch Statement in C
    7m 17s
  • Locked
    13. 
    Running Code with the switch Statement in C
    8m 30s
  • Locked
    14. 
    Using switch Statements for Various Situations in C
    9m 16s
  • Locked
    15. 
    Exploring Nuances of switch Statements in C
    5m 28s
  • Locked
    16. 
    Shortening if-else Blocks Using Ternary Operator
    7m 2s
  • Locked
    17. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.