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

a=1;
b=32767;
a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    43 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are portions of a program disabled in demo versions?

1342


What are the types of pointers in c?

1079


What are logical errors and how does it differ from syntax errors?

1348


can we change the default calling convention in c if yes than how.........?

2592


What are multidimensional arrays?

1170


develop algorithms to add polynomials (i) in one variable

2235


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1087


What are local static variables?

1206


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

1496


How do you initialize pointer variables?

1147


What is difference between static and global variable in c?

1103


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1970


Is Exception handling possible in c language?

2096


How many loops are there in c?

1163


Explain enumerated types in c language?

1103