Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C++ General Interview Questions
Questions Answers Views Company eMail

What is the difference between public, private, protected inheritance?


12 56200

What is Virtual Inheritance?

Amazon, Wipro,

7 13382

What is the difference between operator new and the new operator?

Amazon, TCS, Wipro,

3 10573

What happens if an exception is throws from an, object's constructor and object's destructor?


4 14745

What is the difference between Pointer and a Reference? When you would use them?


4 10728

What are the differences between a struct in C and in C++?

Amazon, Wipro,

8 14695

What are the differences between a struct and a class in C++?

Amazon, Wipro,

7 10326

What are the differences between public, private, and protected access?

IBM, Oracle, Wipro,

12 69449

What is the difference between a copy constructor and an overloaded assignment operator?

Belzabar, Citrix, Microsoft, Wipro,

4 21575

How do you link a C++ program to C functions?

4 15105

Can inline functions have a recursion? Give the reason?

3 7744

How Virtual functions call up is maintained?

2 8757

What is problem with Runtime type identification?

2 7928

What about Virtual Destructor?


1 5692

What are advantages of C++ when comparing with C?

HP, iGate, TCS,

18 24937

Post New C++ General Questions

Un-Answered Questions { C++ General }

In what situations do you have to use initialization list rather than assignment in constructors?


Why null pointer is used?


how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<


What is pure virtual function?


What is a v-table?


Why was c++ made?


What are the benefits of pointers?


What is cin clear () in c++?


Explain rtti.


What do you mean by vtable and vptr in c++?


Define namespace in c++?


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?


How do you write a function that can reverse a linked-list?


Explain the auto storage classes in c++.


Why c++ is so important?