C++ Interview Questions
Questions Answers Views Company eMail

write a program in c++ to implement stack using functions in header file stack.h

Google, Subex,

3 21540

implement stack using stack.h headerfile functions

Exilant, GMG, Subex, University,

1 8996

what is static function

Patni,

2 6200

why the size of an empty class is 1

4 11004

is throwing exception from a constructor not a good practice ?

Ericsson,

5 9579

swapping program does not use third variable

TCS,

5 6734

how to find no of instances of an object in .NET?

Infosys,

1 4655

How Do you Code Composition and Aggregation in C++ ?

IBM, NET,

3 24185

Please tell me the oops concept with detailed answer

EEE,

9 14865

how to swap to variables without using thrid variable in java?

5 6492

what is the usage of clas templates

5 5787

why can't we declare data member of class auto register or extern

1 4840

difference between c and c++?

Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,

38 117561

Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 18095

i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.

Syntel,

1 4041


Un-Answered Questions { C++ }

What is the protected keyword used for?

610


What is a stack? How it can be implemented?

692


Where can I run c++ program?

595


Is there a sort function in c++?

543


What are the benefits of c++?

565






. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

2750


What is c++ and its features?

568


Is c++ a software?

722


What is a tree in c++?

557


Is html an oop?

571


Explain the scope of resolution operator.

623


What is bool in C++

364


What do you mean by volatile and mutable keywords used in c++?

576


Why is it called c++?

578


What is the difference between the compiler and the preprocessor?

611