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

Tell me when is a void pointer used?

1181


Are there any problems with performing mathematical operations on different variable types?

1040


how to create duplicate link list using C???

2558


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

1096


What are run-time errors?

1118


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1950


What is the use of pragma in embedded c?

1058


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2640


What is data type long in c?

1078


Write a program to know whether the input number is an armstrong number.

1123


What is wrong in this statement?

1145


What is the equivalent code of the following statement in WHILE LOOP format?

1305


What does the c preprocessor do?

1111


How can I read a binary data file properly?

1168


Why #include is used in c language?

1052