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
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
what are importance in problem tracking
what is dot net framework
how to convert hashmap to arraylist with iteration
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?
Code for display the images from drive using vb 6.0?
Write a program to reverse a number?
What is dialog programming?
Write a program to create a process in UNIX
How to use string functions in QTP?give some examples
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".
Write a pascal program to calculate the sum of the first 100 even number and odd number
how many types of operating system are avaliable?
what is technical system, business system, logical system in sap pi7.0