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 / shubham agarwal

the answer is simple

a=a*b;
b=a/b;
a=a/b;


this is one of the few possible ways to swap
simple app. of +,- can also brong the result


by
shubham agarwal
shubham.agarwal363@yahoo.com from NIT Srinagar

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate abs() function from fabs() function.

1003


What is malloc and calloc?

1051


What are unions in c?

1028


How many levels of pointers can you have?

1188


List some of the dynamic data structures in C?

1237


What is an array in c?

1046


What are the different types of linkage exist in c?

1027


What is main return c?

992


What are disadvantages of C language.

1158


What are the advantages of Macro over function?

2002


What are the c keywords?

1202


What is data types?

1077


What is bubble sort technique in c?

973


What is self-referential structure in c programming?

1207


Explain why C language is procedural?

1217