If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first

a) 1

b) 5

c) 3


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Describe private, protected and public?

0 Answers  


Define a conversion constructor?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


What is the function of I/O library in C++ ?

0 Answers   HCL,


What is encapsulation in C++? Give an example.

0 Answers   HAL, Honeywell, Zomato,






Does c++ have foreach?

0 Answers  


Which bit wise operator is suitable for turning off a particular bit in a number?

0 Answers  


There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?

1 Answers   TCS,


What are the advantages of prototyping?

0 Answers  


How we can differentiate between a pre and post increment operators during overloading?

0 Answers  


Why was c++ created?

0 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


Categories