Besides, it's also wrong because left shifting a signed integer "into the sign bit" is undefined.
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-...
Besides, it's also wrong because left shifting a signed integer "into the sign bit" is undefined.