Korn's laboratory
My lab reports
Friday, February 18, 2011
Problem in swap code
Our only one blog fan,
m3rlinez
, told me that the one line swap code that I wrote in the
previos entry
cannot use when two variables are the same allocation such as
a[i] ^= a[j] ^= a[i] ^= a[j]; // when i = j
Thanks him to pointed this issue.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment