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
differences between qtp10.0 and 11.0 ?
what is web service in java? have u use before.
how to convert the data from HTML file to SAS dataset?
hi..this is kartheek..complted mca in 2009..but i dont have knowledge in programing..but to learn new language.. which one is suitable for me?is SAP or IBM mainframes is suitable for me..?if it suits how much will it costs..?pls answer...
What is WEB 3.0? What are the features their in WEB3.0
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile
what is the use MDM(Master Data Management)and meaning
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
how to generate dsnless connectivity in j2ee
hoe to data grid use in sql server 2000?
what is d main diff between the java and .net framework
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
what are stubs related to foxpro?
How to print No.of.rows affected after updation using ADO.Net