Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to swap two numbers with out using temp variable

Answer Posted / arundhati

a^=b^=a^=b;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use the functions sin(), pow(), sqrt()?

1135


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1060


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1966


Can we declare a base-class destructor as virtual?

962


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

2134


Can you sort a set c++?

953


Is java a c++?

981


What is class invariant in c++?

1172


How does c++ structure differ from c++ class?

1056


Can we use clrscr in c++?

1026


What are libraries in c++?

1020


Do vectors start at 0?

945


What are the c++ access specifiers?

1348


Can a constructor return a value?

1168


What is doubly linked list in c++?

1030