Tag - #jump statement

Switch-Case

Switch-Case ( case structure ) The switch statement is a control statement, which is different from if statement because it...

while loop

The while loop repeatedly executes a block of code inside the loop while the given logical expression is true else it breaks...

do-while loop

The do-while loop is a variant of the while loop except one main difference, it will always execute the loop body at least once...

for loop

The for loop executes a block of code repeatedly until the condition is false. This type of loop is useful when the number of...

foreach loop

The foreach loop provides simple syntax to cycle through all the elements in an array or collection, unless you explicitly end...

goto Statement

There is another jump statement called goto statement, which enables you to jump directly to another specified line in the...

continue Statement

Another commonly used jump statement is the continue keyword. When we use continue, the rest of the current iteration is skipped...

break Statement

The break keyword causes the program to exit a loop prematurely, before it has completed its execution. In the following example...

Most Popular

Popular Video

82,490+ Views