Category: c++ flow control

goto statement in C++

We will learn about goto statement in C programming and how this statement alters the sequential flow of the program execution. goto statement Syntax of got statement: Here, label indicates the location. goto tells the program to jump the code to the location of label and start executing program from that line. Example of goto

for loop in C++

In this tutorial, we will learn how to execute statements repeatedly using for loop with examples. There may be a condition in which you need to execute a block of statement multiple times. Executing the same block of statement multiple time is called loop.  Syntax of for loop: Here’s how the above code will work. The initialization