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 / riya ganguly

int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of using const for declaring constants?

1046


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16768


what are the facialities provided by you after the selection of the student.

2252


What is file in c preprocessor?

1145


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1935


How do we declare variables in c?

1063


Describe the difference between = and == symbols in c programming?

1371


Do you know the purpose of 'register' keyword?

1019


Where local variables are stored in c?

1002


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2174


In C language, a variable name cannot contain?

1274


How do you write a program which produces its own source code as output?

1118


How to establish connection with oracle database software from c language?

2200


What is the sizeof () operator?

1080


What are register variables in c?

1010