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

Explain about C function prototype?

1033


Do pointers take up memory?

1088


What is the difference between volatile and const volatile?

938


What is the difference between int main and void main?

1001


How do I read the arrow keys? What about function keys?

1021


What are predefined functions in c?

1027


Want to know how to write a 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 total number of disk writes by MySQL.

1991


What is the use of typedef in c?

994


What are the two types of structure?

1044


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3512


What is c programming structure?

1119


What is pointer to pointer in c language?

1056


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1039


How many types of sorting are there in c?

1013


What is printf () in c?

1018