Tag: C/C++

types-of-function-in-c-cpp

Function in C- Cpp

A function is a named unit of a group of program statements that can be invoked from other parts of the program. Function helps reduce…

  • no reactions
0
0 Share
example-of-break-statement

Jump Statement in C/Cpp

The jump statements unconditionally transfer program control within a function. C++ has 4 jump statements: return, goto, break,continue.Of these, return and goto may be used…

  • no reactions
0
0 Share
comparison-between-forwhile-and-do-while-loop

Do and Do-While Loop

THE WHILE LOOP while loop can be address as an entry control loop, since the text-expression is present at entry only. Syntax: Initialization; while (condition) { // code block…

  • no reactions
0
0 Share
for loop in cpp

For loop in c++/c/cpp

It is the iterative statement, through which we can execute a set of instructions repeatedly. Syntax:- for(initialization expression(s); test-expression;update-expression) { //Body of loop; } Let's…

  • no reactions
0
0 Share