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
what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba
What view means?
What is Difference Between Unique and Primary Key Constraints?
What is implicit cursor in pl sql?
Explain the savepoint statement.
What is mutating error?
How does an execution block start and end in pl sql?
Is mariadb a nosql database?
how to convert character strings to numeric values? : Sql dba
Is sql better than access?
What is auto increment?
How is sql used in oracle?
What is view explain with example?
Is sql considered coding?
What is a .db file?