how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.
Answer Posted / gurusaran
x=x*a; (x=1200)
a=x/a; (a=60)
x=x/a; (x=20)
p=p*x; (p=40)
x=p/x; (x=2)
p=p/x; (p=20)
Hence final values are a=60,x=2,p=20
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
1.how to deploy the Maven application in weblogic server? 2.In Real time projects all classes are singleton or some classes only singleton explain? 3.what are the major uses of the designpatterns? 4.explain restful &Soap based services explain?
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
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.
Which design patterns have you used?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
In project we have Documentation phase also,in that what is micro and macro designing?
Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.
What are the tasks performed by a Team Lead
What are two of your strengths that you will bring to our QA/testing team?
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.
Difference of Console, web & windows applications?
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..
Explain polymorphism. Provide an example.