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

Without Computer networks, Computers will be half the use. Comment.

2296


Explain the difference between ++u and u++?

1132


What does p mean in physics?

1037


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1018


Explain how do you determine the length of a string value that was stored in a variable?

1152


Which one would you prefer - a macro or a function?

1081


what is the difference between 123 and 0123 in c?

1202


if p is a string contained in a string?

1844


Why does this code crash?

1091


What is time complexity c?

994


What are the different types of errors?

1138


Explain modulus operator. What are the restrictions of a modulus operator?

1012


What is a structural principle?

1161


What is the maximum no. of arguments that can be given in a command line in C.?

1145


What is the difference between int main and void main in c?

1175