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...

how to swap two integers 1 and 32767 without using third
variable

Answer Posted / riya ganguly

int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the test cases for checking a variable having value in range -10.0 to +10.0?

2371


Can a variable be both const and volatile?

1192


Why & is used in c?

1247


Which node is more powerful and can handle local information processing or graphics processing?

1372


What are identifiers and keywords in c?

1200


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2749


What are the basic data types associated with c?

1319


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1137


what is uses of .net

1788


How many levels deep can include files be nested?

1187


Explain low-order bytes.

1098


How can you increase the allowable number of simultaneously open files?

1213


Can you tell me how to check whether a linked list is circular?

1499


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1210


List the variables are used for writing doubly linked list program.

2086