Without using third variable write a code to swap two numbers.


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

Post New Answer

More C++ Interview Questions

Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


How to input string in C++

0 Answers  


What do you know about Volatile keyword in C++? Explain with an example code.

0 Answers   Adobe,


What is a virtual base class?

6 Answers   Fidelity, Siemens,


What does malloc return in C and C++?

0 Answers   Alter,






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

0 Answers   Adobe,


what do you mean by exception handling in C++?

0 Answers   Alter,


What is the difference between virtual functions and pure virtual functions?

1 Answers  


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


What is meant by exit controlled loop?

0 Answers   Adobe,


How does stack look in function calls? Write a recursive function call, how will the stack look like?

0 Answers   Adobe,


What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


Categories