Skip to content

Category Archives: C++

Prerequisite: Pointers in C++ Pointers are used for accessing the resources which are external to the program – like heap memory. So, for accessing the… Read More
Pre-requisite: Constructor in C++  A copy constructor is a member function that initializes an object using another object of the same class. In simple terms,… Read More
Operator overloading is a compile-time polymorphism. It is an idea of giving special meaning to an existing operator in C++ without changing its original meaning.… Read More
A template is a simple yet very powerful tool in C++. The simple idea is to pass the data type as a parameter so that… Read More
A friend class can access private and protected members of other classes in which it is declared as a friend. It is sometimes useful to… Read More
Prerequisite: Static Keyword in C++ An object becomes static when a static keyword is used in its declaration. Static objects are initialized only once and… Read More
Constant member functions are those functions which are denied permission to change the values of the data members of their class. To make a member… Read More
A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the calling function doesn’t provide a… Read More
What is a destructor? Destructor is an instance member function which is invoked automatically whenever an object is going to be destroyed. Meaning, a destructor is… Read More
Function overloading is a feature of object-oriented programming where two or more functions can have the same name but different parameters. When a function name… Read More
Constructor in C++ is a special method that is invoked automatically at the time of object creation. It is used to initialize the data members… Read More
Virtual functions are member functions that are declared in the base class using the keyword virtual and can be overridden by the derived class. They… Read More
Write a C function ftoa() that converts a given floating-point number or a double to a string.  Use of standard library functions for direct conversion… Read More
Refer to the article C++ Interview Questions and Answers for the latest data. 1. What are the differences between C and C++?  C++ is a… Read More
In C, the following 6 operators are bitwise operators (work at bit-level)   The & (bitwise AND) in C or C++ takes two numbers as operands… Read More

Start Your Coding Journey Now!