Thursday, September 17, 2020

jump in loop (jumping out of a loop )

 Jumps in loop :

• Loops perform a set of oprations repetedly until the control variable fails to satisfy the condition sometimes, when executing a loop  it becomes desirable to skip a part of a loop or to leave the loop as soon as certain condition occurs.

• C-permits a jump from one statement to another within a loop as well as jump out of a loop.

Jumping out of a loop (break statement)

• An early exit from a loop can be accomplished by using break statement.

• When a break statement

No comments:

Post a Comment

Object Paradigm Oriented Programming in C++ / object oriented programming / History of C++/ paradiagram in c++/C devolop, Operating System, Unix operating system, Assembly language, popular in world, Programming language.

  Object Paradigm Oriented Programming  Two programmers, Brian Kernighan and Dennis Ritchie developed a new language called C, in 1972.  C l...