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

Can a variable be both const and volatile?

1135


What is 02d in c?

1077


Do pointers need to be initialized?

1089


What is double pointer in c?

1043


What is the code in while loop that returns the output of given code?

1999


What is the c language function prototype?

1088


Tell us something about keyword 'auto'.

1074


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

3184


What are enumerated types?

1197


Explain the use of keyword 'register' with respect to variables.

1057


Can you please explain the difference between malloc() and calloc() function?

1127


What is a substring in c?

1037


What is the purpose of clrscr () printf () and getch ()?

1073


What are conditional operators in C?

1104


What is an lvalue in c?

1130