Jump Statements
Jump statements are used to override the normal control flow of the program. There are 3 jump statements in C:
1. break Statement
It is used to terminate the loop and bring the program control to the statements after the loop.
Syntax of break
break;
It is also used in the switch statement.
2. continue Statement
The continue statement skips the current iteration and moves to the next iteration when encountered in the loop.
Syntax of continue
continue;
3. goto Statement
The goto statement is used to move the program control to the predefined label.
Syntax of goto
goto label; | label: . | . . | . . | . label: | goto label;
C Cheat Sheet
This C Cheat Sheet provides an overview of both basic and advanced concepts of the C language. Whether you’re a beginner or an experienced programmer, this cheat sheet will help you revise and quickly go through the core principles of the C language.
In this Cheat Sheet, we will delve into the basics of the C language, exploring its fundamental concepts that lay the groundwork for programming. We will cover topics such as variables, data types, and operators, providing you with a solid understanding of the building blocks of C programming.
Contact Us