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 to move files from one directory to another in pl sql?
Is it important to partition hard disk?
Describe different types of general function used in sql?
How do you get column names only for a table (sql server)?
Explain the types of joins in sql?
what is the difference between clustered and non clustered index in sql? : Sql dba
How do we use distinct statement? What is its use?
What is left join example?
Can we use join in subquery?
What is inner join in sql?
How do you explain an index number?
What is on delete restrict?
What is the difference between microsoft access and sql?
How do you modify a table in sql?
Why functions are used in sql?