News for hackers. Stuff that matters.
Re:20 bit operations programmers should know by Jabbles on Saturday June 08, 2013 @08:26AM (#5844693)
It's unclear what language that is. Could that be (well-defined) Java?

Besides, it's also wrong because left shifting a signed integer "into the sign bit" is undefined.

Re:20 bit operations programmers should know by deletes on Saturday June 08, 2013 @08:30AM (#5844702)
Author is apparently trying to combine multiple languages. Maybe well defined in java, definitely not in C.
Re:20 bit operations programmers should know by Jabbles on Saturday June 08, 2013 @08:35AM (#5844717)
In the original Chinese article, the languages were actually mentioned. And the one we're discussing is C++. (And so as you point out, wrong.)

It annoys me that this kind of vacuous article is posted. It reminds me of an old rant about Perl tutorials: http://blogs.perl.org/users/mithaldu/2011/10/perl-tutorials-...