How do you swap two variables using bitwise operators?

1 answer

Answer

1080518

2026-03-21 10:05

+ Follow

a := a XOR b

b := a XOR b

a := a XOR b

it works, but never use it in real programs

do you know why its not used in real program??

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.