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 |
needs examples for black box testing and white box testing
Write a shell program. Enter basic pay of an employee and calculate DA, HRA, Deduction, Gross pay and Net pay as follows: DA = 75 % of BASIC HRA = 10 % of BASIC DEDUCTION = 15 % of BASIC GROSS PAY = BASIC+DA+HRA NET PAY = GROSS PAY-DEDUCTION.
the channel in the data communication model can be? option a.postal mail serv. b telephon lines c.radio signals d. all the above
2 Answers iNautix, National Investment Commission,
what is the work of 1tier,2tier,&ntier? Plz Explain it!
Is class is a abstract datatype in java?
what is the difference between a looping statement and a decision statement
what is web service in java? have u use before.
we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/
I would like to know what is Intellimatch and some interview questions which could be asked related to Intellimatch.
Where do we need Operator overloading?
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
What is Big-O notation?