Node:Terminating and speeding loops, Next:, Previous:The flexibility of for, Up:Loops



Terminating and speeding loops

C provides simple ways of terminating or speeding up any of the three loops we have discussed, whether or not it has run its course. The three main commands to do so are break, return, and continue.