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
Can we perform dml in function?
how to add a new column to an existing table in mysql? : Sql dba
How do I run a script in sql developer?
What is the difference between sql and isql*plus?
tell me about various levels of constraint. : Sql dba
How do you update f as m and m as f from the below table testtable?
How do I run pl sql in sql developer?
How do I find duplicates in two columns?
What is a sql instance vs database?
What is before trigger?
what is auto increment? : Sql dba
How do you delete data from a table?
Explain the the update statement in sql?
What is sql exception?
What is the use of double ampersand (&&) in sql queries? Give an example