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

Can we call a function containing dml statements in a select query?

916


What are all ddl commands?

1011


What is before and after trigger?

886


Can pl sql procedure have a return statement?

956


How much does sql certification cost?

1014


What is sql profiling in oracle?

992


what are enums used for in mysql? : Sql dba

1106


What is index example?

949


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

897


What is materialized view. What are different methods of refresh?

1327


How to prepare for oracle pl sql certification?

1007


what is heap table? : Sql dba

1044


What is a design view?

883


What does the argument [or replace] do?

1014


Can a composite key be null?

905