Posts by Raghav Khandelwal

Author Biographical Info: Not available

Tilde Operator in C++

By Raghav Khandelwal

In this tutorial, we will learn about the tilde (~) operator in C++.  In C++ there are a total of 6 bitwise operators which are &(bitwise AND), |(bitwise OR), ^ (bitwise XOR),.... Read More

Give a warning for invalid input in C++

By Raghav Khandelwal

In this tutorial, we are going to learn how to give a warning when the user enters invalid input. In C++ while writing programs we use std::cin to ask the user to enter the input. .... Read More

Iterate over the words in a string in C++

By Raghav Khandelwal

In this tutorial, we will learn how to iterate over the words in a string in C++. A string is a data type in C++ used to store an array of characters. A string is different from a .... Read More

Function Prototype in C++ with examples

By Raghav Khandelwal

In this tutorial, we are going to learn about the function prototypes in C++. What is function prototyping? A function prototype is basically a declaration of the function that tel.... Read More

Passing a function as a parameter in C++

By Raghav Khandelwal

In this tutorial, we are going to learn about passing a function as a parameter in C++. A function is a block of code that is used for performing certain actions and runs only when.... Read More

return statement in C++ with Examples

By Raghav Khandelwal

In this tutorial, we are going to learn about return statements in C++ along with some examples. To get a clear understanding of the topic first let us understand what are return s.... Read More

Create a 2d array dynamically using pointers in C++

By Raghav Khandelwal

In this tutorial, we will learn how to create a 2D array dynamically using pointers in C++. First, let us understand what is dynamic memory allocation. Memory in the C++ program is.... Read More

How to set all elements of an array to 0 in C++

By Raghav Khandelwal

In this tutorial, we are going to learn how to set all the array elements to 0 (zero) in C++. Arrays in C++ are defined as a collection of items of a similar type stored at a conti.... Read More

Related Posts