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 |
how will you code the subfile which is in editing mode (multiple case subfile)?
Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?
Why multiple inheritance is removed in java?
how pseudo column works?
I would like to know what is Intellimatch and some interview questions which could be asked related to Intellimatch.
what is inprocess and outprocess in vb
which one is the best practice using synchronization method or synchronization block
Need provab technical test questions
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
how to convert hashmap to arraylist with iteration
Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?
How Many versions are there in crystal reports