Control Structures in C: Looping & Unconditional Control Structures

C 17    |    Beginner
  • 17 Videos | 2h 2m 24s
  • Includes Assessment
  • Earns a Badge
The three main types of looping control structures in C are for loops, while loops, and do-while loops. This course provides demos for how to work with looping and unconditional control structures in C. You will begin by creating a for loop which iterates over a block of code for as long as a certain condition is true. You will then experiment with the loop condition, the value of the loop variable, and the update expression for the loop variable, before moving on to iterating over arrays using for loops. You will also create nested for loops. Next, you will use while loops to execute some code while a condition is satisfied. You will explore the loop variable and iterate over arrays, then move on to do-while loops. Finally, you will learn about the unconditional control structures such as break, continue, goto, and return keywords. These are typically used with other control structures. After completing this course, you'll be able to implement while loops, for loops, do-while loops, break statements, and continue operators.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    illustrate the creation and use of variables of the Boolean type in C
    illustrate how loop control structures work in C
    create for loops in C
    demonstrate the effects of changes to the loop variable and update expression in for loops
    demonstrate several possible gotchas of for loops
    demonstrate how to iterate over arrays with for loops
    demonstrate how to create nested for loops
    demonstrate how to create while loops
  • demonstrate how to work with while loops
    demonstrate the use of do-while loops
    demonstrate how to exit loops with the break statement
    demonstrate how to use the break statement with while loops
    demonstrate how to use the continue operator in different scenarios
    demonstrate how to use the continue operator with while loops
    demonstrate how to use the goto operator
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 7s
    UP NEXT
  • Playable
    2. 
    Introducing C's Boolean Type
    7m 55s
  • Locked
    3. 
    Understanding Loops in C
    5m 11s
  • Locked
    4. 
    Creating for Loops in C
    9m 3s
  • Locked
    5. 
    Experimenting with for Loops in C
    8m 54s
  • Locked
    6. 
    Understanding Quirks of for Loops in C
    9m 44s
  • Locked
    7. 
    Iterating over Arrays in C
    7m 18s
  • Locked
    8. 
    Using Nested for Loops in C
    5m 4s
  • Locked
    9. 
    Creating while Loops in C
    6m 19s
  • Locked
    10. 
    Experimenting with while Loops in C
    7m 25s
  • Locked
    11. 
    Introducing do-while Loops in C
    9m 37s
  • Locked
    12. 
    Using the break Keyword in C
    9m 37s
  • Locked
    13. 
    Creating while Loops with Break Statements in C
    6m 47s
  • Locked
    14. 
    Introducing the continue Operator in C
    8m 37s
  • Locked
    15. 
    Using the continue Operator with while Loops in C
    6m 3s
  • Locked
    16. 
    Skipping to Parts of Code Using goto
    10m 8s
  • Locked
    17. 
    Course Summary
    2m 36s

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.