Skip to content

Category Archives: C++

A macro is a piece of code in a program that is replaced by the value of the macro. Macro is defined by #define directive.… Read More
Range-based for loops is an upgraded version of for loops. It is quite similar to for loops which is use in Python. Range-based for loop… Read More
The std::is_trivially_assignable template of C++ STL is present in the <type_traits> header file. The std::is_trivally_assignable template of C++ STL is used to check whether a… Read More
The std::underlying_type template of C++ STL is present in the <type_traits> header file. The std::underlying_type template of C++ STL is used to get the underlying… Read More
The std::is_member_function_pointer template of C++ STL is present in the <type_traits> header file. The std::is_member_function_pointer template of C++ STL is used to check whether the… Read More
The std::remove_volatile template of C++ STL is present in the <type_traits> header file. The std::remove_volatile template of C++ STL is used to get the T… Read More
Given a vector V consisting of N integers and an element K, the task is to find the index of element K in the vector… Read More
An object is a basic unit of Object-Oriented Programming and represents the real-life entities. Complex objects are the objects that are built from smaller or… Read More
C++
What is undeclared Error: When we use some constant in our program maybe they are built-in constant and may be created by a user according… Read More
The std::remove_const template of C++ STL is present in the <type_traits> header file. The std::remove_const template of C++ STL is used to get the type… Read More
Given an unsorted array arr[] having N elements, the task is to find out the median of the array in linear time complexity. Examples: Input:… Read More
Given a positive integer N, the task is to find the average of cubes of the first N natural numbers. Examples:  Input: N = 2 Output: 4.5 Explanation: For… Read More
Do you ever wonder about the sudden emergence and popularity of Blockchain? What is it? Well, Blockchain is literally a chain of blocks as the… Read More
C++ allows defining static data members within a class using the static keyword. When a data member is declared as static, then we must keep… Read More
C++ provides a list of standard exceptions defined in header <exception> in namespace std where “exception” is the base class for all standard exceptions. All… Read More

Start Your Coding Journey Now!