How will you execute a stack using a priority queue? (Push and pop should be in O (1)).


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

Post New Answer

More C++ Interview Questions

Difference between function overloading and function overriding.

0 Answers   Alter,


C++ Public access specifier instead of Private – What is bad ?

0 Answers  


Do you know about Agilent PRECOMPILERS. ?

0 Answers   Agilent,


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?

0 Answers   Alter,






Can we call a virtual function from a constructor?

1 Answers  


How many times will this loop execute? Explain your answer.

0 Answers  


In C++ what is a vtable and how does it work?

0 Answers   Agilent,


What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


What is RTTI and why do you need it?

0 Answers   Amazon,


How does free know the size of memory to be deleted

0 Answers  


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


Categories