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

write a program to print data of 5 five students with structures?

2052


What are pointers?

1119


what is stack , heap ,code segment,and data segment

2704


How can you check to see whether a symbol is defined?

1106


What is d scanf?

1097


What is c basic?

1184


What is function in c with example?

1167


What is scope of variable in c?

1046


How the c program is executed?

1163


Does * p ++ increment p or what it points to?

1125


how to find anagram without using string functions using only loops in c programming

3197


What does c mean?

1059


C language questions for civil engineering

1722


List some of the static data structures in C?

1204


What are disadvantages of C language.

1168