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 / sur!

void xorSwap (int *x, int *y) {
if (x != y) {
*x ^= *y;
*y ^= *x;
*x ^= *y;
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is build process in c?

1083


How to implement a packet in C

2836


Why do we use header files in c?

1021


In c programming language, how many parameters can be passed to a function ?

1056


c program to compute AREA under integral

2340


Does sprintf put null character?

990


Why C language is a procedural language?

981


What is difference between structure and union in c programming?

1022


What are the two types of functions in c?

945


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

1047


What is difference between structure and union?

1082


What is an array in c?

1004


Explain what standard functions are available to manipulate strings?

1028


In which layer of the network datastructure format change is done

1841


Is flag a keyword in c?

1111