EZ

Eduzan

Learning Hub

Eduzan
Eduzan / C++

Control Structures in C

Control structures (also called decision control statements) let a C program choose what to do next based on conditions, and repeat actions using loops. They are essential for building real programs that respond to user input, data, and changing situations.

C control flow mainly includes:

  • Decision making: if, if-else, nested if, else-if ladder, switch, ternary ?:
  • Loops: for, while, do-while
  • Jump statements: break, continue, goto, return

End of lesson.