Control Structures in C: Getting Started with Control Structures

C 17    |    Beginner
  • 17 videos | 1h 54m 18s
  • Includes Assessment
  • Earns a Badge
Rating 4.3 of 50 users Rating 4.3 of 50 users (50)
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

  • 2m 6s
  • 6m 40s
    In this video, you will learn how to outline three types of control structures used in the C language. FREE ACCESS
  • Locked
    3.  Using if Statements in C
    7m 55s
    In this video, you will learn about the use of basic if statements. FREE ACCESS
  • Locked
    4.  Using Relational Operators with if Statements in C
    6m 55s
    In this video, learn how to use relational operators with if statements. FREE ACCESS
  • Locked
    5.  Chaining Relational Operators with Logical Operators
    4m 59s
    In this video, you will learn how to use logical operators to connect relational operators. FREE ACCESS
  • Locked
    6.  Exploring Quirks of if Statements in C
    8m 46s
    In this video, find out how to identify common mistakes with if statements. FREE ACCESS
  • Locked
    7.  Using if-else Conditional Blocks in C
    9m 17s
    Learn about the use of if-else blocks. FREE ACCESS
  • Locked
    8.  Creating Nested if-else Blocks in C
    6m 23s
    Learn about the use of if-else blocks within other if-else blocks. FREE ACCESS
  • Locked
    9.  Exploring Nested if Statements in C
    7m 12s
    In this video, you will learn how to run code with if-else blocks nested inside each other. FREE ACCESS
  • Locked
    10.  Introducing the else-if Block in C
    4m 51s
    During this video, you will learn how to outline the if-else-if control structure. FREE ACCESS
  • Locked
    11.  Using the if-else-if Ladder in C
    8m 39s
    In this video, you will learn how to run code with the if-else-if ladder. FREE ACCESS
  • Locked
    12.  Understanding the switch Statement in C
    7m 17s
    Upon completion of this video, you will be able to illustrate the mechanics of the switch statement. FREE ACCESS
  • Locked
    13.  Running Code with the switch Statement in C
    8m 30s
    In this video, you will learn how to run code with switch statements. FREE ACCESS
  • Locked
    14.  Using switch Statements for Various Situations in C
    9m 16s
    Learn how to use switch statements in various scenarios. FREE ACCESS
  • Locked
    15.  Exploring Nuances of switch Statements in C
    5m 28s
    In this video, you will learn about the use of characters in switch statements. FREE ACCESS
  • Locked
    16.  Shortening if-else Blocks Using Ternary Operator
    7m 2s
    Learn how to use the ternary operator to shorten if-else blocks. FREE ACCESS
  • Locked
    17.  Course Summary
    3m 2s
    097f01e9-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.

YOU MIGHT ALSO LIKE

Rating 4.7 of 26 users Rating 4.7 of 26 users (26)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 51 users Rating 4.3 of 51 users (51)
Rating 4.5 of 1884 users Rating 4.5 of 1884 users (1884)
Rating 4.3 of 131 users Rating 4.3 of 131 users (131)