Posts by Harsh Singh
Author Biographical Info: Not available
Here we will learn about the insert() function present in C++ STL. insert() function is used to insert a new element in a vector. By taking two arguments: The iterator of the posit.... Read More
Here we will learn how to return an array by reference from a function in C++. We can achieve this in multiple ways. Let’s check these out: First Method: by creating the arra.... Read More
In this article, we will learn how to delete files that are less than a given specific size from a directory in C++. We will follow the following steps for this – Open the di.... Read More
Here we will see how can we find the size of a given array if the size is not known. Using sizeof() operator: The sizeof() operator returns the size of any data type passed to it. .... Read More
The pipe operator (|) in C++ is also known as bitwise or operator. The “bitwise or” operator (or pipe operator) in C++ takes two numbers as operands and checks their co.... Read More
Given a vector, we are supposed to make a string containing all of its elements in C++. It will be a single string of vector elements. Example: Vector Elements: {“hello”.... Read More
Given a comma-separated string, we want to convert it to a vector in C++. Example: String: "Hey,there,Howare,You" Vector elements: "Hey" "There" "Howare" "You" First Approach: In t.... Read More