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

there are 2 variables called x and y ,x contains 1,2 and y
contains 3,4 we have to swap the values from x to y and y
to x with out using dummy variables and it can be done only
by using a single statement ? how?

Answer Posted / ramakanth

y=x+y-(x=y)

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalisation in sql?

1072


How to load data with sql*loader?

1060


What is the difference between the conventional and direct path loads? : aql loader

1411


What is sql basics?

1048


How do you remove duplicate records from a table?

949


How do I view a view in sql?

958


how to use like conditions? : Sql dba

1119


What is an exception in PL/SQL? What are the two types of exceptions?

1325


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1156


What is oracle sql developer?

1075


What is the difference between a query and a report?

988


What are inner outer left and right joins in sql?

1025


what is denormalization. : Sql dba

1124


Does asenumerable execute the query?

1056


how does a local variable is defined using t-sql? : Transact sql

1029