how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.

Answer Posted / chaitanya

x=x^a;
a=x^a;
x=a^x;

x=x^p;
p=x^p;
x=p^x;

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call a C++ function which is compiled with C++ compiler in C code?

796


What is the use of sas software? Is sas and sap are different?

1024


suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?

1500


how pseudo column works?

1725


What is autocall macro and how to create autocall macro? what is the use of it?

1506






Give examples of macro quoting function?

1556


What is the difference beween joblib and steplib statements

1790


what is the difference between read the data from table and infotype

2061


Which language they use during interview?

1528


Why did you ever become involved in QA/testing?

1612


Need provab technical test questions

2401


what is the filters in biztakk server? where it can use?

1660


1) How can u create the table?

1379


5.Call by value and Call by reference with program?

1838


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

1567