swap 2 variables without using 3 rd variable???

Answer Posted / rajendra

let
A=10
B=20
after swaping A=20
B=10
ok
A = A + B (A = 20+10 = 30)
B = A - B (B = 20-10 = 10)---->B=10
A = A - B (A = 30-10 = 20)---->A=20
Thats all very simple

byee Friends
rajendra
rajendra prasad reddy
rajendra_penumalli@yahoo.com
9885162742
hyd

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what the purpose of requirement phase

12447


Anyone tell me the test cases of Shopping Favorite

1521


How to explain a banking project in interview ? like project discription is Client Online Banking Application provides access to information relating to Banking Online Services provided by Axis to View daily customer transactions, Current and Previous customer statements, Transfer funds from Chequing and Savings accounts ................ From interview point of view can any one explain this project in laymans language

10010


i need manual testing interview questions for 2+ experience plzz help me..

3843


how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?

1867






explain fish model in detail?

1739


Can anyone list out major scenarios for an application managing drug composition?

1529


Test cases have written according to Flow of the software working or according to Screens?

1460


what are your achievements in your organization ? Guyz very very urgent , help me

1655


Hi to all..Now am working at one company as Software tester..I have selected for Accenture via one consultancy.. They have told that joining date will be on 19 th july..But now they are postponed joining date..whether i can trust that or not?Can u plz tell??plzz..whether i can put my paper to releive or not? CAn u telll?

1627


please send me database stored procedure checklist.

2443


What ishigh severity, low priority bug?

693


What about manual testing opening in bangalore in September. Not getting a single interview call from last one month.

1580


HI, I WANT TO DO A ISTQB FOUNDATION CERTIFICATION FROM HYDERABAD WHICH INSTITUTE WOULD BE GOOD FOR ME,WHERE I CAN TAKE SOME TRAINING SESSIONS FOR CLEARING THIS EXAMINATION.

1795


What is build interval period?

1840