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 good attributes of Programming language ?
why rownum=1 works properly but not rownum=>2,=>3 etc.
How to set on/off a group of indicators in a single statement?
what will be the model paper for the post of assistant programmer in delhi high court
What is SOLID Principle in Programming Language?
WHat is execution in manual testing and when will we start execution and what language we use in execution
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?
what is the difference between a looping statement and a decision statement
ok how would i do the following extract from a file i have ssns = 267907230 which are in column 7 into a separate data set then create a 2nd job step to extract from the data set created the following "fund code" which is in column 31 and is 113 into yet another data set
What is meant byStatic Variable ?
How to know we are in home page of a web application using QTP
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
0 Answers DST Global Solutions,