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

void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}

in this code always gives the same result for all case

Answer Posted / shruti

Sorry, it does nott.. :-)
it works proper..

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the application of c?

1102


What is the use of extern in c?

1095


What is void pointers in c?

1008


What are header files? What are their uses?

1219


What are reserved words?

1113


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3690


What is the use of sizeof?

1022


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1246


Explain what is the benefit of using enum to declare a constant?

1094


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2748


Why do we need a structure?

1043


Can you define which header file to include at compile time?

1022


What is use of bit field?

1304


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

1114


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

2237