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
Is postgresql a server?
What is sap sql?
Is inner join same as self join?
What is embedded sql what are its advantages?
What is a dirty read sql?
How do I run sql profiler?
Why function is used in sql?
Are sql connections encrypted?
When you have to use a default "rollback to" savepoint of plvlog?
How do I clear the screen in sql plus?
What is difference between inner join and self join?
What is integrity in sql?
Is the primary key an index?
Which query operators in sql is used for pattern matching?
What is pls_integer in pl sql?