C Programming

C is a general-purpose, middle-level, compiler-based, and procedure or function-oriented structured programming language. It was developed by Dennis Ritchie at Bell Laboratories in 1972. The main purpose of developing C was to write operating systems.

Related Pages

goto Statement in C with Example

In this tutorial, you will learn the C goto statement with examples. What is the syntax to use the goto statement and how to use it in our program? The goto statement is another type of control statement supported by C. The control is unconditionally transferred to the statement associated with the label specified in […]

goto Statement in C with Example Read More »

Break Statement in C

The break, continue, goto, and return statements in C are Jump control statements. These statements cause the control to pass to any desired location in the program. There are several uses of break statement in C. Break keyword in C When the break keyword is encountered inside the loop then immediately the loop is terminated

Break Statement in C Read More »

Continue Keyword in C

The continue keyword in C doesn’t terminate the loop, but when continue keyword occurs then control of the program jumped to the ending of the loop and later to the beginning of the loop. Due to this the remaining statements of loop after the continue keyword is skipped. Syntax:- continue Use of continue statement in

Continue Keyword in C Read More »

For Loop in C

The for loop in C programming language is a pre-test loop, where first of all initialization expression is evaluated then the condition is checked and if the condition is true then only the statements of the for loop are executed. For loop Syntax in C Here expression1 is called initialization expression, expression2 is called test

For Loop in C Read More »

do-while Loop in C

The do-while loop in C is very closely related to the while loop. The do keyword is placed on a line of code at the top of the loop. A block of statements follows it with a test expression after the keyword while, at the bottom of the loop. It is a post-test loop. The

do-while Loop in C Read More »

While Loop in C

While loop in C is a pre-test loop where the expression is evaluated then only statements are executed. It uses a test expression to control the loop. Before every iteration of the loop, the test expression is evaluated. While loop syntax in C The TestExp is evaluated, if it is true then the statements of

While Loop in C Read More »