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

Explain what is the purpose of "extern" keyword in a function declaration?

1071


Explain what is a pragma?

1047


What is actual argument?

1060


What is difference between function overloading and operator overloading?

1088


explain what is fifo?

1069


What is identifier in c?

1009


Explain what will the preprocessor do for a program?

1063


Is it possible to execute code even after the program exits the main() function?

1337


What are the storage classes in C?

1159


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1194


Do you know the purpose of 'register' keyword?

1019


i have a written test for microland please give me test pattern

2730


What is string constants?

1145


Explain what are multidimensional arrays?

1068


What is the best way of making my program efficient?

1030