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 / nikhil godani

a=a+b;
b=a-b;
a=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

What is meant by int main ()?

1255


Is it better to bitshift a value than to multiply by 2?

1143


What is function prototype in c language?

1085


What does void main return?

1195


How can I get back to the interactive keyboard if stdin is redirected?

1233


What does the file stdio.h contain?

1119


What does c in a circle mean?

1130


write a program to generate address labels using structures?

4622


Is boolean a datatype in c?

1128


What is the difference between the expression “++a” and “a++”?

1271


Explain what is #line used for?

1122


What’s the special use of UNIONS?

1205


What is a function in c?

1678


What is difference between scanf and gets?

1371


What is advantage of pointer in c?

1244