Which of the following is NOT a container adapter? a. stack b. queue c. deque d. priority-queue
SIKSHAPATH Latest Questions
Write a templated class named “EveryOther” that behaves much like std::vector (in the file named “everyother.h”). It has a member function called “push_back”, but only every other call to the member function actually does anything (actually pushed the element to ...
My program contains the line: delete x; It does not cause a compile time error. Which of the following is a possibledeclaration for x? a. int x; b. double x; c. double *x; d. int x;
To create an array of integers which can be accessed as A,…,A residing on the heap the code to be executed is: a. int A; b. int *A = new int; c. int A = new int; d. int new A;
Write a menu-driven program that implements the following operations (using separate functions)on a linear array- Insert a new element at the end Display the elements of the linear array