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

no,result will depend on the values of a nd b

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I discover how many arguments a function was actually called with?

1070


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3312


What is I ++ in c programming?

1121


What is adt in c programming?

1164


What is meant by type specifiers?

1129


What library is sizeof in c?

1093


What is void c?

1081


Write a program in c to replace any vowel in a string with z?

1128


Is c programming hard?

1030


Can we change the value of static variable in c?

1033


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10204


How can I find out the size of a file, prior to reading it in?

1175


State two uses of pointers in C?

1063


What is the difference between arrays and pointers?

1128


What is difference between main and void main?

1213