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

Answer Posted / gurusaran

x=x*a; (x=1200)
a=x/a; (a=60)
x=x/a; (x=20)

p=p*x; (p=40)
x=p/x; (x=2)
p=p/x; (p=20)

Hence final values are a=60,x=2,p=20

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

V2 SOLUTIONS APTI paper is very easy there are 3 sections 1'st is quant problem on age train traveling speed is given length of train is given we have to find out length of bridge then prob on calender one date is given on Friday hv to find out day of othe date ans is Friday then there was 1 prob on percentage which was very easy ans was 21340 then 2’nd section was english grammer had has been being like that hv to fill in the blanks was very wasy then last section was find relative words there was five Q 1 pant ANS:-breath 2inquire ans :- ask And 3 more out of that 1 ‘s ans was:- body 4 And others ans was :-through THEN THEY HAVE GD There was three topics 1 should we allow india’s talent to go to abrod 2 protest against seperate state is justify 3 inturuption of politics in cricket Thats all guys i cleared both the rounds now preparing 4 interview best of luck

1778


in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?

1520


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1491


what is the BAM? where we can use it in BizTalk server?

1356


what is the basic and unique feature of dotnet

1716






what is the meaning of without standing arrears?

9863


shall we execute our java programmes in jre

1760


Please describe an example where you used object orientation in one of your programs.

1491


If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com

7842


Write a program to show polymorphism.

699


Which language they use during interview?

1521


what is the use MDM(Master Data Management)and meaning

1906


Give examples of macro quoting function?

1552


Define distributed queries. can you explain me as soon as possible

1626


10.Define filters,binary to hexadecimal,hexadecimal to decimal?

1517