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...

write a program to swap Two numbers without using temp variable.

Answer Posted / raghavendra

a=3;
b=2;
a=a^b;
b=a^b;
a=a^b;
printf("%d%d",a,b);

Is This Answer Correct ?    34 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of empty structure in c?

1048


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2738


What is hashing in c?

1121


What is the -> in c?

972


What are loops c?

1027


How can you draw circles in C?

1117


What is the difference between memcpy and memmove?

991


Explain how can you tell whether two strings are the same?

995


What is the difference between a free-standing and a hosted environment?

1114


if p is a string contained in a string?

1810


cavium networks written test pattern ..

4045


What is maximum size of array in c?

1011


Differentiate between the = symbol and == symbol?

1238


How a string is stored in c?

1033


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1209