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 conio h in c?

1049


What is the difference between a string and an array?

1209


What is the difference between declaring a variable and defining a variable?

1281


Explain the difference between #include "..." And #include <...> In c?

1029


What is the code in while loop that returns the output of given code?

1999


Can i use β€œint” data type to store the value 32768? Why?

1191


What is #define?

1118


What is the behavioral difference when include header file in double quotes (β€œβ€) and angular braces (<>)?

1347


How does normalization of huge pointer works?

1173


Why do we use main function?

1182


Why should I prototype a function?

1201


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3095


plz let me know how to become a telecom protocol tester. thank you.

2191


What is the difference between volatile and const volatile?

990


State two uses of pointers in C?

1063