Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Swap 2 variables without using a temp variable

Answers were Sorted based on User's Feedback



Swap 2 variables without using a temp variable..

Answer / guest

a,b
a=a+b
b=a-b
a=a-b

Is This Answer Correct ?    21 Yes 0 No

Swap 2 variables without using a temp variable..

Answer / sheetal

if a=5 and b=3 are two variables, then add them i e
a=a+b; a=8
b=a-b; b=5
a=a-b; a=3

Is This Answer Correct ?    12 Yes 0 No

Swap 2 variables without using a temp variable..

Answer / mfsi_satyakamm

int x,y;
x=x+y;
y=x-y;
x=x-y;

Is This Answer Correct ?    12 Yes 1 No

Swap 2 variables without using a temp variable..

Answer / s n

try this one line swaping of two variables


a=((a+b)-(b=a));

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More Manual Testing Interview Questions

what is batch testing?

3 Answers  


I am sayyad(frm hyd) new commer for this site? I have some doubt's pls clarify it..... I finished my MCA 2005 pased out),(sayyadmeer@gmail.com) and S/w Testing Course(2006) till now i didn't get any job in testing, I did not have any experience in real time projects. Any body can send me the sample Testcases,Srs,for Banking,ERP Projects etc. Advance thanks to all

5 Answers  


Hi, i want any refernce in the YODLEE. i heard that there is opening for the manual testing. Please reply soon at nidhi.pal24@hotmail.com

1 Answers  


What is bug life cycle?

2 Answers  


How do you scope out the size of the testing effort?

0 Answers  


What is difference between Defect and Bug?

12 Answers  


How will you link the Defect to the test case? Explain Bug life cycle

2 Answers   IBM,


Could you tell me two things you did in your previous assignment (QA/Testing related hopefully) that you are proud of?

2 Answers   Allianz,


There is a defect leekage to production environment after release. How to convince the client and what has to be done to retain the client

5 Answers   HCL,


integration testing is followed by a)unit testing b) system testing c) acceptance testing d) regression testing

3 Answers  


is Business requirment doc is configurations item or not how you control configurations control

1 Answers  


Why do u want to change ur current Company?

2 Answers   Infosys,


Categories