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

take two var a , b
a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between mpi and openmp?

1284


What type is sizeof?

1037


What are multibyte characters?

1115


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1118


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2809


What is #include stdio h?

1115


What are conditional operators in C?

1094


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1085


Which is more efficient, a switch statement or an if else chain?

1019


What is fflush() function?

1132


Explain how can I remove the trailing spaces from a string?

1046


What is the difference between functions abs() and fabs()?

1151


What is the scope of static variable in c?

1016


Why is structure padding done in c?

1129


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2069