C while loop

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

While Loop Syntax :


Note :

  • For Single Line of Code – Opening and Closing braces are not needed.
  • while(1) is used for Infinite Loop
  • Initialization , Incrementation and Condition steps are on different Line.
  • While Loop is also Entry Controlled Loop.[i.e conditions are checked if found true then and then only code is executed ]