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
What is meant by exit controlled loop?
How many times will this loop execute? Explain your answer.
What is the purpose of a constructor? Destructor?
Explain what happens when an exception is thrown in C++.
What is the difference between creating an object, using 'new' and using 'malloc'?
What is constant keyword in C++? Illustrate its various uses.
0 Answers Akamai Technologies, Infogain,
When must you use a constructor initializer list?
What is a class in C++?
0 Answers Amazon, TCS, UGC Corporation,
In C++ what do you mean by Inheritance?
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
Difference between Call by pointer and by reference.
Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }