How to swap values between two variables without using a
third variable?
Answer Posted / pushpendra
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 ? | 13 Yes | 9 No |
Post New Answer View All Answers
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
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 is integration testing in real time applications?
If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
How to use string functions in QTP?give some examples
Differevce between arrays and array builders?
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??
Which design patterns have you used?
in teradata level primary in table level allows duplicates why?
what is the use MDM(Master Data Management)and meaning
Difference between debugging, running, executing of an application
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
What is ur porject Architecture? If anyone ask what i have to specify here..