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 / chandan

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

Is This Answer Correct ?    1400 Yes 158 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are structures and unions? State differencves between them.

1181


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1349


What are keywords c?

1032


What is the best way to store flag values in a program?

1081


What does struct node * mean?

1020


How are structure passing and returning implemented?

1041


What are the different types of objects used in c?

1034


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

1455


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1347


How can you read a directory in a C program?

1148


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1092


What's a good way to check for "close enough" floating-point equality?

1167


Do pointers store the address of value or the actual value of a variable?

1082


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

1280


How is a pointer variable declared?

1099