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 is the use of sas software? Is sas and sap are different?
What is the worst case of AVL tree?
What is the best action a system can take when deadlock is detected
what is the difference between java , sap ,.net , orecle apps ?
suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?
What are the limitation in using querystring in .net?
How to display questions one by one in jsp and I wants to store the answers in my database?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
0 Answers Sacred Heart College,
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
What is the difference b/w Object base and object oriented programming?
What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids