Unlike any programming, language loops play a very important role in C or C++ . Here is some example program using for loop. Continue reading
Well, friends today we discuss about loops in C /C++. Iteration statements (Loops) allow a set of instruction to be executed repeatedly until a certain condition meets. The condition may be predefined or open ended like (for loop and do-while or while loop) Continue reading
C/C++ supports two types of selection statements: if and switch. In addition, the ? operator is an alternative to if in certain circumstances for flow control.
The Syntax of if statement is
if (expression) statement;
else statement; Continue reading