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 |
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
0 Answers HCL, Sacred Heart College,
Given: (x-2)(x+3)= 100; solve the equation for x using any programing language.
how sap is different from other software ?
SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?
Definition of Singleton Class? what is the Purpose of it? what is the advantage?
what is delegate and how works delegate and event.
Info for guidewire documents and interview questions
What is algorithm in SCD Type2(SAS DI Studio Transformaton)?
how many languages .net is supporting now?
To sorting array of 10 elements which sorting is best a)selection b)bubble c)tree sort
in teradata level primary in table level allows duplicates why?
what is an INI file?