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

Is r written in c?

1189


Can 'this' pointer by used in the constructor?

1133


Explain the use of fflush() function?

1132


How can I swap two values without using a temporary?

1155


What is the value of h?

1085


What is the acronym for ansi?

1105


Explain what is a static function?

1157


What is the use of a conditional inclusion statement in C?

1108


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1173


Why isn't any of this standardized in c? Any real program has to do some of these things.

1266


Explain #pragma statements.

1100


What is a shell structure examples?

1148


What is call by value in c?

1050


Can a program have two main functions?

1176


How can I read data from data files with particular formats?

1092