Skip to content

Category Archives: C++

Prerequisites: Access Modifiers in C++, Runtime Polymorphism Private: The class members declared as private can be accessed only by the functions inside the class. They… Read More
Prerequisites: lvalue and rvalue in C++, References in C++ “l-value” refers to a memory location which identifies an object. “r-value” refers to the data value… Read More
The cout is a predefined object of ostream class, and it is used to print the data on the standard output device. Generally, when we… Read More
Given string str, the task is to check whether a string is pangram or not using in C++. A string is a Pangram if the… Read More
Pairs in C++: The pair container is a simple container defined in <utility> header consisting of two data elements or objects. The first element is… Read More
Pre-requisite: unordered_set,  unordered_map  C++ provides std::unordered_set and std::unordered_map to be used as a hash set and hash map respectively. They perform insertion/deletion/access in constant average… Read More
 C++ offers its users a variety of functions, one of which is included in header files. In C++, all the header files may or may… Read More
In C++, a trigraph is a three-character sequence that represents a single character. It means that trigraph sequences are the set of three characters starting… Read More
C++
Competitive Programming teaches one to find the easiest solution in the quickest way possible. And C++ has always been loved by almost all the competitive… Read More
The auto keyword in C++ specifies that the type of the variable that is being declared will be automatically deducted from its initializer. In case… Read More
C++ filter_none edit close play_arrow link brightness_4 code // C++ code #include <iostream> #include <utility> using namespace std;   int main() {     // Declaring the… Read More
Array within a Structure A structure is a data type in C/C++ that allows a group of related variables to be treated as a single… Read More
Standard Output Stream(cout): The C++ cout statement is the instance of the ostream class. It is used to display output on the standard output device… Read More
Forward list Forward list is a sequence container that allows unidirectional sequential access to its data. It contains data of the same type. In STL,… Read More
Short-circuiting is one of the optimization steps of the compiler, in this step unnecessary calculation is avoided during the evaluation of an expression. Expression is… Read More