how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.
Answer Posted / 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 |
Post New Answer View All Answers
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
How can we develop a multi-tier application in Java?
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
5.Call by value and Call by reference with program?
what are the 3 forms of a prolog term
Explain what is OOPS and its concepts?
Find out the roles which gives access to all tables in SAP? Thanks in advance.
Write a program to find whether a given number is prime or not.
how sap is different from other software ?
is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
give idea for creating screen in abap
what is integration testing in real time applications?