3 ms·
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 u
by Jabbles 13y ago
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.
- deletes 13y agoAuthor is apparently trying to combine multiple languages. Maybe well defined in java, definitely not in C.
- Jabbles 13y agoIn 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-suck-and-cause-serious-damage.html http://blogs.perl.org/users/mithaldu/2011/10/perl-tutorials-...