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 / ramakanth
y=x+y-(x=y)
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
explain advantages of myisam over innodb? : Sql dba
Are subqueries faster than joins?
What is write ahead logging in sql server?
what is “go” in t-sql? : Transact sql
What program will open a mdb file?
What is meant by truncate in sql?
Why is there a need for sqlcode and sqlerrm variables?
Can two tables have same primary key?
What is normalization in a database?
What is sqlexception in java?
What is the mutating table and constraining table?
What is the difference among union, minus and intersect?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
what are ddl statements in mysql? : Sql dba
List the various privileges that a user can grant to another user?