C++ Interview Questions
Questions Answers Views Company eMail

How do you compile the source code with your compiler?

810

What are the two types of comments, and how do they differ?

786

If there are two catch statements, one for base and one for derived, which should come first?

777

If a function doesn’t return a value, how do you declare the function?

820

If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

821

What is the difference between the parameter to a template and the parameter to a function?

897

How many static variables are created if you put one static member into a template class definition?

770

When is the copy constructor called?

882

What does new return if there is insufficient memory to make your new object?

794

How do you establish a has-a relationship?

818

Show the declaration for a pointer to function returning long and taking an integer parameter.

798

Is it legal in c++ to overload operator++ so that it decrements a value in your class?

831

How do you invoke a base member function from a derived class in which you have not overridden that function?

859

What is an inclusion guard?

857

Where must the declaration of a friend function appear?

740


Un-Answered Questions { C++ }

How do you compile the source code with your compiler?

810


What is type of 'this' pointer? Explain when it is get created?

785


What is a singleton class c++?

769


Is c++ a good first language to learn?

773


Name the debugging methods that are used to solve problems?

775


What are function prototypes?

979


what is Loop function? What are different types of Loops?

904


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2762


What are containers in c++?

742


what is data abstraction in C++?

842


Difference between a homogeneous and a heterogeneous container

911


What is a list in c++ stl?

896


What are references in c++?

892


Is react oop?

817


How can I learn dev c++ programming?

782