C++ General Interview Questions
Questions Answers Views Company eMail

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


12 52095

What is Virtual Inheritance?

Wipro, Amazon,

7 10274

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

TCS, Wipro, Amazon,

3 8724

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


4 13068

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


4 8867

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

Wipro, Amazon,

8 12289

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

Wipro, Amazon,

6 8368

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

IBM, Wipro, Oracle,

12 64889

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

Wipro, Citrix, Microsoft, Belzabar,

4 19538

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

4 13308

Can inline functions have a recursion? Give the reason?

3 6850

How Virtual functions call up is maintained?

2 7771

What is problem with Runtime type identification?

2 6992

What about Virtual Destructor?


1 4742

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

iGate, HP, TCS,

18 20859

Post New C++ General Questions

Un-Answered Questions { C++ General }

Explain what data encapsulation is in c++?


What is data abstraction? How is it different from data encapsulation?


How do you decide which integer type to use?


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2


Why is c++ a mid-level programming language?


Explain 'this' pointer and what would happen if a pointer is deleted twice?


What is the array and initializing arrays in c++?


What does #define mean in c++?


What is a virtual destructor? Explain the use of it?


Is python better than c++?


What are the various arithmetic operators in c++?


Explain the static storage classes in c++.


Explain what is oop?


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?


Write about the scope resolution operator?