Write a macro for swapping integers

Answer Posted / deepak

# define swap(a,b) a = a + b; b = a - b; a = a - b;

Is This Answer Correct ?    50 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is property in oops?

569


How to call a non virtual function in the derived class by using base class pointer

5268


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2106


What is encapsulation process?

582


What is abstraction in oops with example?

776






What is difference between abstraction and encapsulation?

594


What is oops in simple words?

583


What is encapsulation in ict?

608


What makes a language oop?

598


What is object-oriented programming? Webopedia definition

725


What is object in oop?

679


What is encapsulation in oops?

536


What is inheritance in simple words?

627


What is abstract class in oop?

534


Are polymorphisms mutations?

703