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
hai friends i did my bcom (distance with out inter)and iam pursuing mca(distance alagappa university)iam learning testing cource in ameerpet can i elgibel for testing jobs pls guide me … …and send details to rangavijetha@gmail.com..thanks
What knowledge I must have as a 3 yrs. manual tester??
What is Online gaming, payment gateway development, hosting and custom software development services.
what type of testing techniques are using after accept the build?
What is the difference between three tier and two tier application?
what is the critical defect in telecom domain?help me out from this prob its very urgent
What is desk checking and control flow analysis
how can you test the web environment for security testing?
How do you perform configuration management with typical revision control systems?
can anyone help me regarding testing patterns?
Zenq interview questions for manual testing
Test approach to windows scheduler?
Differentiate verification and validation?
What is actually a rule based testing
What is the difference between SIT AND IST?