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

wat are the two methods for swapping two numbers without
using temp variable??

Answer Posted / vijayakumar kanagasabai

main()
{
int a=4;b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("After swapping: a=%d, b=%d",a,b);
}

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c token and types of c tokens?

1056


How do I get a null pointer in my programs?

1106


how to count no of words,characters,lines in a paragraph.

4423


What is structure pointer in c?

1046


to find the closest pair

2322


What are valid signatures for the Main function?

1222


What is the scope of an external variable in c?

1040


What is zero based addressing?

1165


Explain threaded binary trees?

1153


Write a code of a general series where the next element is the sum of last k terms.

1036


Explain why C language is procedural?

1218


What is volatile variable in c?

1087


hi any body pls give me company name interview conduct "c" language only

2280


C language questions for civil engineering

1712


What is action and transformation in spark?

1158