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
I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that
Write a program to reverse a number?
Write a program to find whether a given number is prime or not.
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...
how can i split string in a textbox in windows appication using C#.net
Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????
can any method return type may be constructor , or that method name allow
could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks
What is the use of sas software? Is sas and sap are different?
Tell me the jobs for the MCA Fresher in delhi, Noida..
Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)
what is web service in java? have u use before.
What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?
where is available in this mantis toturials?
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.