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...

write a program to swap two numbers without using temporary
variable?

Answer Posted / sam

let a and b be variables
a^=b^=a^=b;
by performing this logic from right hand side we can swap
two variables

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c call by value?

1013


When can you use a pointer with a function?

1060


Explain setjmp()?

1066


What is getch () for?

1224


How do shell structures work?

1109


What is d scanf?

1082


When can a far pointer be used?

1021


What is the sizeof () operator?

1079


Write a program of prime number using recursion.

1078


What are the advantages of using new operator as compared to the function malloc ()?

1329


What's the total generic pointer type?

1051


What is the difference between far and near ?

1191


What is the difference between pure virtual function and virtual function?

1115


What is fflush() function?

1131


How do you construct an increment statement or decrement statement in C?

1226