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 / mangala pandi p

provided a+b is between the int minimum and int maximum

so the answer is no.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string in c language?

1077


What is a const pointer in c?

1076


Array is an lvalue or not?

1069


How to write a multi-statement macro?

991


Write a progarm to find the length of string using switch case?

2030


What is the main difference between calloc () and malloc ()?

1099


What is c basic?

1127


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2137


define string ?

1059


What does 3 mean in texting?

1031


Can you assign a different address to an array tag?

1113


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3860


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

949


Can a void pointer point to a function?

974


Is there a way to switch on strings?

1030