C++ Interview Questions
Questions Answers Views Company eMail

When is a template better solution than a base class??

emc2,

2 7693

Explain calling an object's member function(declared virtual)from its constructor?

1 2749

What is the concept of object oriented program?

6 5906

You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.

4 11167

Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].

1 5054

Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.

3 7508

wht is ditch

1756

When you define a integer it gets stored in which data structure?(Stack or a heap)

emc2,

2 4818

What is a scope operator and tell me its functionality?

emc2,

3 4882

What is difference between function overloading and overriding?

emc2,

1 5145

What is difference between new and malloc?

emc2,

7 9223

What is difference between #define and const?

emc2,

3 6417

Write pseudo code for push in a stack?

emc2,

2 9778

What is Hashing and how is it done? Pictorial form?

emc2, Wipro,

2 7696

Polymorphism with an example?

Accenture, emc2,

8 12218


Un-Answered Questions { C++ }

explain sub-type and sub class? atleast u have differ it into 4 points?

1840


What are the advantages of inheritance in c++?

659


List the issue that the auto_ptr object handles?

613


why is c++ called oops? Explain

583


Explain about Virtual Function in C++?

613






Define a nested class.

615


What is DlgProc?

604


Why is c++ still used?

609


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

679


What is meant by iomanip in c++?

612


Get me an image implementation program.

1561


What do you mean by function and operator overloading in c++?

613


Explain the concept of friend function in c++?

608


Why struct is used in c++?

624


Why do we use polymorphism?

581