Write a macro for swapping integers

Answer Posted / sun

#define SWAP(a,b) (a^=b^=a^=b;)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have inheritance without polymorphism?

617


which feature are not hold visual basic of oop?

1725


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1543


write a C++ program for booking using constructor and destructor.

2054


What is polymorphism in oop example?

517






What is the difference between static polymorphism and dynamic polymorphism?

587


What is difference between oop and pop?

619


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1623


What exactly is polymorphism?

610


What are the features of oop?

641


What is inheritance and how many types of inheritance?

622


What is object-oriented programming? Webopedia definition

725


class type to basic type conversion

1839


when to use 'mutable' keyword and when to use 'const cast' in c++

1648


what are the realtime excercises in C++?

2337