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

Answer Posted / prashant

b=a+b;
a=b-a;
b=b-a;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c fast?

1069


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1236


In C, What is the #line used for?

2214


Can an array be an Ivalue?

1098


Why main is used in c?

1078


What is the process to generate random numbers in c programming language?

1179


What's the right way to use errno?

1149


How can I trap or ignore keyboard interrupts like control-c?

1069


Is it fine to write void main () or main () in c?

1031


What is the difference between abs() and fabs() functions?

1131


What are the advantages of union?

1071


Explain how do you override a defined macro?

1080


What is pointer to pointer in c with example?

1078


What does the function toupper() do?

1132


What does 4d mean in c?

1504