What are the Types of Loops in C and C++?
Loops in programming Language is a piece of code that get executed repeatedly until the specified condition becomes false. A loop consists of two parts, a block of statements and…Read more »
Conditional Statements in C/C++
Conditional statements, also known as selection or Decision making statements, used to make decisions based on the expression. If the expression evaluates to True or 1 the statements following the…Read more »
“endl” vs “\n”, Why you should avoid ‘endl’?
Both endl and \n are almost same with a slight difference which has a huge impact on programs. Till now you have written many program in C++ ending the ‘cout’…Read more »
Input Output in C++ – (cout, cin, cerr, clog)
Every C++ newbie have come across input output objects (i.e. cin & cout) and what was there functionality etc. But the most important thing is these two operations are not…Read more »
int main(), void main() and main(), Which one is best?
In C/C++, main is the starting point to any program execution. Like all other functions, main is also a function with a special characteristic that the execution always starts from…Read more »
Scope of Variables in C – Local,Global & Formal parameters
Scope of Variables in C define the visibility of a variable within the block or within function or a program. Unlike other programming languages C allows us to declare variables…Read more »
Tokens in C and C++
The smallest element in C/C++ programs are called TOKENS. These are usually separated by white space like Blanks, Horizontal or vertical tabs, New lines. Tokens in C and C++ recognizes…Read more »
Control Statements in C/C++
Control statements in both C and C++ specify the flow of program execution and which instructions of the program must be executed next. Thus allowing programmer to make decisions, perform…Read more »
Operators in C/C++ Language
Operators in C/C++ language can be defined as symbols that helps us to perform specific mathematical and logical computations on operands. The basic functionality of C/C++ languages is incomplete without…Read more »
Storage Classes in C and C++
Storage Classes in C/C++ are used to describe which section of memory should be allocated to a variable. A storage class also defines the scope, visibility and life-time of a…Read more »