How to swap values between two variables without using a
third variable?
Answer Posted / shobha
int x=10,y=20;
x=x+y (10+20=30)
y=x-y (30-20=10)
x=x-y (30-10=20)
x=20,y=10
x and y vales are swaped.
| Is This Answer Correct ? | 51 Yes | 12 No |
Post New Answer View All Answers
Delta 5 weight scale not connect with oracle application what i can do?
diffrence between oracle apps , .NET , SAP
Give examples of macro quoting function?
how to hide prompts
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
what is log files in qtp what is use
is it possible to learn sap from book without any tutorial. if yes please mention the beginner,s book of sap and also make your valuable advice for self study of sap .
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
will it allow to add same value in HashMap class.
Difference between HTML and DHTML?
Why did you ever become involved in QA/testing?
write the a cl program with the following specification A. Accept 2 parameters-date and date type B. if date type is J then convert date to *MDY format C. if date type is M convert date to *JUL format 4.send a program message with the value of converted date Please explain for each with coding?
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
is it acceptable if we declare multiple exceptions in same overridden method.