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 / divya c
(y!=x)||(x!=y)?x=y,y=x:y=x,x=y;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you write a subquery?
What is the difference between the conventional and direct path loads? : aql loader
What is difference between function and trigger?
what is the difference between clustered and non clustered index in sql? : Sql dba
What is example of database?
How do you use join?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
What is Histogram?
Can you select everything, but 1 or 2 fields, without writer's cramp?
what is try_catch block in procedure
What is the difference between microsoft sql and mysql?
Explain ddl statements in pl/sql?
Why truncate is used in sql?
Is drop table faster than truncate?
what is a database transaction? : Sql dba