Skip to content

Category Archives: C++

C++ is a general-purpose, object-oriented programming language. It supports generic programming and low-level memory manipulation. Bjarne Stroustrup (Bell Labs) in 1979, introduced the C-With-Classes, and… Read More
C++ provides a special function to change the current functionality of some operators within its class which is often called as operator overloading. Operator Overloading… Read More
Pre-requisite: Pointers in C++ Given a string of lowercase english alphabets. The task is to count number of vowels present in a string using pointers… Read More
Pre-requisite: Friend FunctionCASE 1: Given two numbers a & b, swap these two numbers using the friend function of C++.  Examples:  Input : a = 5,… Read More
The std::is_empty template of C++ STL is used to check whether the given type is empty or not. This method returns a boolean value showing… Read More
The std::is_standard_layout template of C++ STL is used to check whether the type is a standard layout or not. It returns a boolean value showing… Read More
Given the length as rows and breadth as cols, the task is to print the mirrored hollow parallelogram.Examples:   Input: rows = 5, cols = 8… Read More
Given a C++ program and the task is to break the entire program in the form of Makefile. It is basically used to create .cpp… Read More
Sorting is one of the most basic functions applied to data. It means arranging the data in a particular fashion, which can be increasing or… Read More
Prerequisite : multiset The multiset::erase() is the STL function in C++ removes the specified element from multiset. There are three versions of this method. These… Read More
COMPUTER SCIENCE (PAPER 1: THEORY) (Maximum Marks: 70) (Time allowed: Three hours) (Candidates are allowed additional 15 mins for only reading the paper. They must… Read More
Course Home Page Week Topic Sub-Topic Week 1 Basics Of C++, Control Structures Syntax, Variables, Data Types, I/O, Operators, Preprocessors, If, If-else, Switch case, Loops(For,… Read More
Thread::hardware_concurrency is an in-built function in C++ std::thread. It is an observer function which means it observes a state and then returns the corresponding output.… Read More
The std::multiset::key_comp() is an inbuilt function in C++ STL which returns a copy of the comparison object used by the container. By default, this is… Read More
The multiset::max_size() is an observer function in C++ STL which returns the maximum number of elements a container can hold. This limit might be due… Read More