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

void swap(int *a,int *b)
{
if(*a == *b)
return;
*a^=*b;
*b^=*a;
*a^=*b;
}

Is This Answer Correct ?    461 Yes 195 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does dm mean sexually?

1261


Why c is called a mid level programming language?

1022


Describe the difference between = and == symbols in c programming?

1297


What is the difference between struct and union in C?

1241


What is nested structure in c?

1011


what are non standard function in c

1848


Is there a built-in function in C that can be used for sorting data?

1180


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1526


Explain the use of 'auto' keyword

1072


C program to find all possible outcomes of a dice?

2276


Tell us bitwise shift operators?

1022


Why n++ execute faster than n+1 ?

2843


Which are low level languages?

1046


How can I recover the file name given an open stream?

945


Is that possible to add pointers to each other?

1318