Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Saturday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Wednesday at 10:50 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Jobs & Employment
Programming interview - written tests
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="saja" data-source="post: 24265555" data-attributes="member: 14999"><p><span style="font-size: 12px">look here carefully </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">if a = 10, b = 20;</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">a = a + b; -- line 01 </span></p><p><span style="font-size: 12px">b = a - b; -- line 02</span></p><p><span style="font-size: 12px">a = a - b; -- line 03</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">-- line 01 output a = a + b = 10+ 20 = 30 , (still b = 20)</span></p><p><span style="font-size: 12px">-- line 02 output b = a - b = 30 - 20 = 10, (still a = 30)</span></p><p><span style="font-size: 12px">-- line 03 output a = a - b = 30 - 10 = 20 </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">final output a = 20 , b = 10 </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">still cannot understand <img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><u>this is valid and no need for Xor swapping</u></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p></blockquote><p></p>
[QUOTE="saja, post: 24265555, member: 14999"] [SIZE="3"]look here carefully if a = 10, b = 20; a = a + b; -- line 01 b = a - b; -- line 02 a = a - b; -- line 03 -- line 01 output a = a + b = 10+ 20 = 30 , (still b = 20) -- line 02 output b = a - b = 30 - 20 = 10, (still a = 30) -- line 03 output a = a - b = 30 - 10 = 20 final output a = 20 , b = 10 still cannot understand :sorry: [U]this is valid and no need for Xor swapping[/U] [/SIZE] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom