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 / vidhubala-j

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

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of the c language?

1140


Which are low level languages?

1152


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1946


Which node is more powerful and can handle local information processing or graphics processing?

1372


What are dangling pointers in c?

1355


Differentiate abs() function from fabs() function.

1073


Tell me what is the purpose of 'register' keyword in c language?

1040


What is c programing language?

1137


Why is it important to memset a variable, immediately after allocating memory to it ?

2133


Why pointers are used in c?

1071


Explain what is meant by high-order and low-order bytes?

1092


Difference between Function to pointer and pointer to function

1130


What is the newline escape sequence?

1145


What is a static function in c?

1242


What is the scope of static variable in c?

1083