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 sizeof return in c?

977


What is the hardest programming language?

1095


When should you not use a type cast?

1069


Write a program to show the change in position of a cursor using c

995


I came across some code that puts a (void) cast before each call to printf. Why?

1152


write a program to find the given number is prime or not

4654


How do I copy files?

997


Explain modulus operator.

993


What do you mean by a sequential access file?

1041


What is the difference between if else and switchstatement

1839


find out largest elemant of diagonalmatrix

2171


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1073


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2293


Why is not a pointer null after calling free?

968


What is a buffer in c?

946