Posts from C++

Initialization of multidimensional array of zeros using C++

By Kuldeep Singh

Hello coders, in this tutorial we will learn about how to initialize a multidimensional array of zeros. Before we proceed let’s discuss what is a multidimensional array, We c.... Read More

Pick a random element from an array in C++

By Sanam Sahoo

In this C++ tutorial, we will learn how we can write a program to pick a random element every time from an array in C++. Let’s briefly discuss the C++ functions that will hel.... Read More

Find Minimum delete operations to make all elements of array same in C++

By Dinesh Kumar

In this tutorial, we are going to learn how to find the minimum delete operations needed to make all elements of an array the same in C++. Here we will see the algorithm and after.... Read More

Smallest element repeated exactly ‘k’ times (not limited to small range) in C++

By Dinesh Kumar

In this tutorial, we are going to learn how to find the smallest element repeated exactly ‘k’ times (not limited to small range) in C++. Here, firstly we will see the algorith.... Read More

Finding the Number of Vowels, Consonants, Digits, and White Spaces in a String in C++

By Vishnu Chand

Hey programmers, in this tutorial we will learn how to write a code that gives the number of vowels, consonants, digits, and white spaces present in a string as its output. Basic T.... Read More

Check Leap Year or not in C++

By Vishnu Chand

Hello Coders!! In this tutorial, we will learn how to implement the logic behind checking if the year given as input to the C++ program is a leap year or not. Before going into the.... Read More

How to sort vector in descending order in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will learn how to sort a vector in descending order in C++. Let’s discuss the methods, we can sort the vector: Using sort() function Using.... Read More

Check if an element exists in vector in C++

By Pyata Sandeep

Hey folks! Here, we are going to check if an element exists in a vector or not in C++. In general, you can find element in a vector using std functions. This returns an iterator to.... Read More

Related Posts