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
is it acceptable if we declare multiple exceptions in same overridden method.
please any one pass file aid,xpeditor and endeavor tools
how sap is different from other software ?
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
what is the work of 1tier,2tier,&ntier? Plz Explain it!
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
when we use mantis? how learn mantis?
Difference between delegates and Events?
THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING
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?
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".
what are other resources are needed for this mantis?
Define distributed queries. can you explain me as soon as possible
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?
What do you understand by modular programming?