Category Archives

Pointers in C and C++

Pointers store address of variables or a memory location. // General syntax datatype *var_name; // An example pointer "ptr"...

Pointers in C and C++

Pointers store address of variables or a memory location. // General syntax datatype *var_name; // An example pointer "ptr"...

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed...

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed...

Arrays in C/C++

An array in C/C++ or be it in any programming language is a collection of similar data items stored...

Arrays in C/C++

An array in C/C++ or be it in any programming language is a collection of similar data items stored...

Functions in C/C++

A function is a set of statements that take inputs, do some specific computation and produces output. The idea...

Functions in C/C++

A function is a set of statements that take inputs, do some specific computation and produces output. The idea...

Switch Statement in C/C++

Switch case statements are a substitute for long if statements that compare a variable to several integral values The...

Switch Statement in C/C++

Switch case statements are a substitute for long if statements that compare a variable to several integral values The...

Execute both if and else statements in C/C++ simultaneously

Write a C/C++ program that executes both if-else block statements simultaneously. Syntax of if-else statement in C/C++ language is:...

Execute both if and else statements in C/C++ simultaneously

Write a C/C++ program that executes both if-else block statements simultaneously. Syntax of if-else statement in C/C++ language is:...

Decision Making in C / C++

There come situations in real life when we need to make some decisions and based on these decisions, we...

Decision Making in C / C++

There come situations in real life when we need to make some decisions and based on these decisions, we...

Loops in C and C++

Loops in programming come into use when we need to repeatedly execute a block of statements. For example: Suppose...

Loops in C and C++

Loops in programming come into use when we need to repeatedly execute a block of statements. For example: Suppose...