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...

how to swap two integers 1 and 32767 without using third
variable

Answer Posted / riya ganguly

int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need volatile in c?

1137


What is the difference between #include

and #include “header file”?

1004


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2030


Explain what is the most efficient way to store flag values?

1192


How reliable are floating-point comparisons?

1064


What is restrict keyword in c?

1074


Why is structure padding done in c?

1102


What is meant by int main ()?

1173


What is ctrl c called?

1020


What is a floating point in c?

1035


How does pointer work in c?

1099


Explain what is a pragma?

1018


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1965


Explain how do you declare an array that will hold more than 64kb of data?

1417


What is spark map function?

1083