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

What does it mean to declare a function or variable as static?

0 Answers   Amazon,


What is an algorithm (in terms of the STL/C++ standard library)?

0 Answers   Amazon,


What is a memory leak in C++?

0 Answers   Agilent,


Briefly explain various access specifiers in C++.

0 Answers   Amdocs,


Difference between Call by pointer and by reference.

0 Answers   Adobe,


what is friend function in C++?

0 Answers   TCS,


explain the term 'resource acquisition is initialization'?

0 Answers   Amazon,


Explain the difference between C and C++.

0 Answers   Accenture,


If class D is derived from a base class B

0 Answers  


What Is Polymorphism in C++ ?

2 Answers   IBS, Impetus, ITC Indian Tobacco Company, Motorola,


What is static variable and difference between(const char *p,char const *p,const char* const p).

0 Answers   Accenture,


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


Categories