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 maximam caption size of lebel
In project we have Documentation phase also,in that what is micro and macro designing?
5.Call by value and Call by reference with program?
Hi Friends , i am very new in VB 6.0 Any body can able to help me ? i need interview question and answer vb 6.0 . please send honeysukumar@yhaoo.com
what is delegate and delegation model give the real live example on delegate model
How many packages available in java??
I'm new to ABAP. What is Module pool in SAP?
which worker is involved in all the phases of SDLC?
which property is used to display the advertisements with adrotator control
1.What is difference between symget and & in sas? 2.what is difference between callsymput and %let?
what is integration testing in real time applications?
What is Console Application? & The purpose Of Console Application? with description.