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 condition or inside curly braces…

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’ statements happily with endl to…

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 part of the core C++…

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 the ‘main’ with ‘int’ or…

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 anywhere in the program but…

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 by parser as keywords, variables,…

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 tasks properly. It important for…

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 the operators. C/C++ contains various…

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 variable or function with in…

Read more »

Data types in C++ Programming

Data types in C++ are meant to identify and inform compiler the type of data, memory and associated operations of handling it. Variable in C/C++ both use data-type during declaration to restrict the type of…

Read more »

Data Types in C Language with example Programs

The C language has a rich set of data types to handle different kind of data entered by programmer. Basically a data type informs compiler about how much memory a declared variable required to store…

Read more »

Keywords in C++ Language

Keywords are those who has a fixed meaning already defined by Compiler and used to perform certain internal operation. There are 84 keywords in C++ Language including 32 keywords of C language. These reserved words…

Read more »

Keywords in C Language

Keywords in C are predefined reserved words it means their meaning and purpose already defined in C library used to perform internal operation. Every programming language has a set of keywords with predefined values that…

Read more »

What is SQL? – Introducing SQL in simplest way

SQL – Structured Query Language designed to allow both technical and non-technical users work with a database to manage, manipulate and transform data in a Relational Database Management System (RDBMS), particularly handling entities/variables which related…

Read more »

Structure of C++ Program

Programs written in any language follow certain sequence of statements in particular predefined order which know as structure of a program. Similarly, the structure of C++ program has various sections, namely, comments, inclusion of header…

Read more »