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 2 numbers within a single statement?

Answer Posted / srinidhi

a=(a+b)-(b=a);

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your stream meaning?

1241


What extern c means?

1005


largest Of three Number using without if condition?

1604


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

2156


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2260


What are the types of operators in c?

1066


What is data types?

1091


When is a “switch” statement preferable over an “if” statement?

1151


How can I split up a string into whitespace-separated fields?

1058


When should a type cast be used?

1018


How many loops are there in c?

1115


how many key words availabel in c a) 28 b) 31 c) 32

1081


Can stdout be forced to print somewhere other than the screen?

1049


what are non standard function in c

1916


What is null pointer in c?

994