How to swap values between two variables without using a
third variable?
Answer Posted / sushma rani
Here we have two variable A=4, B=3
we need to swap values without taking any third variable
result should be A=3, B=4
for that we can do ,
A=A+B-A (e.g. A=4+3-4 => 3)
and
B=B+A-B (e.g. B=3+4-3 => 4)
That's it....
Thanks & Regards
Sushma Rani
Bangalore
===========
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is test execution and when will we start execution please send me one example for this question
5. How do you round the addition or subtraction of two numbers in assembler?
My Qualification is MCA.My interview is on 5th may.They may ask q as------AS u r MCA...Why u r not tring anywhere else? What can be the ans?
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
in teradata level primary in table level allows duplicates why?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
how can i split string in a textbox in windows appication using C#.net
Need provab technical test questions
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
what will we require to build project with the help of oracle
Write a shell program where you enter a number which corresponds to K.M. Find out the corresponding values in m, cm, inches, and feet. Hints:- 1 k.m= 1000 m 1 m= 100 cm 1 inches= 2.54 cm. 1 feet= 12 inches
Difference between views and index in sas programming
Difference between debugging, running, executing of an application
how can i create report in abap to insert data in table pa0002 using insert command
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...