how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.
Answers were Sorted based on User's Feedback
Answer / padmas
To swap the values without using temporary variable
for a,x and p,
Do a call to swap function for a and p and
another call to same swap function for x and p.
call1:swap(a,p);
call2:swap(x,p);
swap(variable1,variable2)
{no temporary variable}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / padmas
If the values for a=20,x=60, and p=2 then
need another set of values for b=,y= and q= to do the swap
without using temporary variable.
| Is This Answer Correct ? | 1 Yes | 2 No |
What are the advantages of Server Controls over HTML/ASP Controls.
what is posix?
I am work in it aompenei
Artficial language is provided which of the language?
What does this useful command line do? tasklist /m "mscor*"
What is the difference between WebIntelligence and Designer in creating universes?
what is web service in java? have u use before.
plz send me NIC Scientific Officer /Engineer-SB(Programmer) previous question paper or syllabus
what is lazy loading in hibernate?Explain in detailed manner?
sample and simple coding where we get?
shall we execute our java programmes in jre
how to add a new table with variables and thier values into a imported file uisng proc import?