How to swap values between two variables without using a
third variable?
Answer Posted / siva
You can also do it with the exclusive or bitwise operator...
a = a ^ b;
b = a ^ b; ((a ^ b) ^ b == a)
a = a ^ b; ((a ^ b) ^ a == b)
| Is This Answer Correct ? | 27 Yes | 8 No |
Post New Answer View All Answers
could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks
1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?
Delta 5 weight scale not connect with oracle application what i can do?
how do we provide security for web services
< DL Compact > tag is used for
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
diffrence between oracle apps , .NET , SAP
what do u mean by tagging
9.Difference between even and odd signals?explain with the diagram?
What r the attributes using in Win Runner?
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.
what is d main diff between the java and .net framework
what is programmable BIST in today ic design
Explain the difference between an expert and a novice user. How would your strategy for designing user interfaces for an expert user differ from that for designing user interfaces for a novice user.