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 |
can we convert .class file to dll file
List and explain any five built in functions for Lists data type in python
what is mutex?
4 Answers Axiom, Blue Star, SQL Star,
7.x=10; y=20; x<<2=? x<<1=? y>>2=?
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
purpose of abstraction and interface
Explain recursion with an example.
how to convert the data from HTML file to SAS dataset?
what is microprocessor?
how we can connect applet with database?
why main() method should not return any value
THE CHANNEL IN DATA COMMUNICATION CAN BE?