What is namespace in C++ ?

In C++ namespace is a logical division of the code which is designed to stop the naming conflict. In C++ namespace defines the scope where the identifiers such as variables,…
View Answer

What is Virtual Inheritance ?

During multiple inheritance Virtual Inheritance is used to remove the ambiguity of base class, when a derived class inherits the same base class via other classes in C++. For example,…
View Answer

What is Template in C++ ?

In C++ a template is a simple and yet very powerful tool. We don’t need to write the same code for different data types because it is simple idea to…
View Answer

What is Stack in C++ ?

Stack is an abstract data structure that contains a collection of elements. It implements the Last In First Out (LIFO) mechanism this element is pushed at the end is popped…
View Answer

What is Pointers in C++ ?

Pointers are symbolic representation of addresses and it enables a program to simulate call-by-reference as well as to create and manipulate dynamic data structures. It defines a pointer variable and…
View Answer

What is Overloading ?

If a single object behaves in many ways, it is known as overloading. It provides different versions of the same function while a single object has the same name. C++…
View Answer

What is bool data in C++ ?

In C++ Boolean data type is defined using the bool keyword. This servers as an easy and convenient datatype for programmers to manage and write conditional statements using a boolean…
View Answer

What is Iterator in C++ ?

An iterator is an object like a pointer that points to an element inside the container. Iterator can use to move through the contents of the container. We can access…
View Answer

What is destructor in C++ ?

In C++ destructor is an instance member function which is invoked automatically whenever an object is going to be destroyed. A destructor meaning is the last function that is going…
View Answer

What is Constructor in C++ ?

In C++ constructor is a special type of member function of a class which initializes objects of a class. Constructor is automatically called when object is created in C++. It…
View Answer

What is C++ ?

It is an object-oriented programming language that can be used to create high-performance applications. In 1985 C++ was developed by Bjarne Stroustrup as an extension of c program language. It gives a…
View Answer

Difference between Class and Structure

                  Structure                        Class Structure is a collection of different types of data type Class is a group of common objects that share common properties and relationships. By…
View Answer

Difference between C and C++

C vs C++                           C                           C++ C programming language was developed by Dennis Ritchie C++ programming language was developed by Bjarne Stroustrup It is a structural programming…
View Answer