Without using third variable write a code to swap two numbers.
No Answer is Posted For this Question
Be the First to Post Answer
How do you work around them?
What does it mean to declare a member function as virtual in C++?
How will you execute a stack using a priority queue? (Push and pop should be in O (1)).
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
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-; } }
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?
What is placement new?
How do you write a function that can reverse a linked-list in C++?
When would you choose to return an error code rather than throw an exception?
What is function overloading and operator overloading in C++?
Tell How To Check Whether A Linked List Is Circular ?
Write a C++ Program to find Addition of Two Numbers.