Write a macro for swapping integers

Answer Posted / balaji ramdoss

#define SWAP(a,b) b=a+b-(a=b)

Is This Answer Correct ?    19 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sksksk mean in text slang?

1537


What are the 3 pillars of oop?

617


can we make game by using c

3432


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

1648


What is encapsulation example?

551






Why it is called runtime polymorphism?

577


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1792


Why do while loop is used?

577


How to use CMutex, CSemaphore in VC++ MFC

4333


What are benefits of oop?

639


What is inheritance write a program to show use of inheritance?

615


What is encapsulation in simple terms?

541


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1583


What is the difference between a mixin and inheritance?

524


What is polymorphism programming?

605