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

Where define directive used?

1031


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1211


Write a program to swap two numbers without using third variable?

1246


how to construct a simulator keeping the logical boolean gates in c

2195


What is merge sort in c?

1001


how logic is used

1914


What is omp_num_threads?

1035


Explain how do you declare an array that will hold more than 64kb of data?

1397


Explain spaghetti programming?

1188


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

2038


What are the 4 types of organizational structures?

1031


What is the use of bitwise operator?

1066


Can the “if” function be used in comparing strings?

979


Can we use visual studio for c?

1008


explain how do you use macro?

1098