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

Actually this code is for interchanging values of two
variables without using third variable

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getch c?

1300


What do you understand by normalization of pointers?

1058


What are the types of bitwise operator?

1113


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

1276


Write a program for Overriding.

1160


In a header file whether functions are declared or defined?

1126


Can we declare variables anywhere in c?

1001


What is difference between arrays and pointers?

1074


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1168


By using C language input a date into it and if it is right?

1085


What is const volatile variable in c?

1035


What is a c token and types of c tokens?

1066


Using which language Test cases are added in .ptu file of RTRT unit testing???

4284


What are the two types of functions in c?

1013


How do you override a defined macro?

1270