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

code for replace tabs with equivalent number of blanks

2098


How many parameters should a function have?

1125


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

16587


What is #include stdio h?

1059


Write a program to print ASCII code for a given digit.

1035


What is cohesion and coupling in c?

983


Explain how do you override a defined macro?

1018


Is array name a pointer?

993


What is bss in c?

1044


Can we declare a function inside a function in c?

987


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1623


What are type modifiers in c?

998


What are the features of c languages?

1027


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4621


Differentiate between Macro and ordinary definition.

1270