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

Answer Posted / padmas

If the values for a=20,x=60, and p=2 then
need another set of values for b=,y= and q= to do the swap
without using temporary variable.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach

1416


how many types of bytes are there???

1995


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1545


How will you prove that java swing is multithreaded?

1704


how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?

1855






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

1025


What is the entry point function of a DLL?

623


What is the meaning of client-server application. The purpose of Client-Server Application. with description.

1658


Difference between debugging, running, executing of an application

3489


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

614


As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.

1463


What's the difference b/w Table & Templete in Smartform?

1649


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

1628


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

3201


Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.

1635