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 WEB 3.0? What are the features their in WEB3.0
why should i hire u
needs examples for black box testing and white box testing
what is difference between VB5 AND VB6.0
define profiler???
what is apt_dump_score in datastage where it is useful
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
0 Answers DST Global Solutions,
what is the difference between a looping statement and a decision statement
what is difference between oracle and pl/sql
What sysoption determines where the macro facility searches a specific catalog for complied macro?
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?
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...