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
what is web configuration file
Explain polymorphism. Provide an example.
how to add a new table with variables and thier values into a imported file uisng proc import?
What is BASIS
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
What's the difference b/w Table & Templete in Smartform?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
sample code for data transfer between two r/2 systems and r/3 systems?
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".
how to check single or double byte in struts
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.
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
Outline the two important features of a terminating recursion. Any ideas?
why we use abstract in awt?