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 / thangaraj

a=a^b;
b=b^a;
a=a^b;

Is This Answer Correct ?    13 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1256


How can I get back to the interactive keyboard if stdin is redirected?

1233


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3999


Explain how can you tell whether a program was compiled using c versus c++?

1144


When should I declare a function?

1210


How can I dynamically allocate arrays?

1161


What is c language and why we use it?

1118


Which is better malloc or calloc?

1157


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1944


What is the purpose of 'register' keyword in c language?

1072


code for replace tabs with equivalent number of blanks

2211


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

2027


What are types of structure?

1170


How do you sort filenames in a directory?

1234


Is array a primitive data type in c?

1131