2 ms·
The first of those literally says "Unary complement (bit inversion)". That's what the standard says. "Bit inversion" tells you exactly what's supposed to happ
by AnimalMuppet 7y ago
The first of those literally says "Unary complement (bit inversion)". That's what the standard says. "Bit inversion" tells you exactly what's supposed to happen, regardless of the architecture of the machine.
Or is your claim that the website, despite being based on the C++ standard, is simplifying it by assuming that all machines are two's-complement? All right then, what is the actual text of the C++ standard? (You're the one making the claim that on ones-complement machines, the standard doesn't require what everyone thinks it does, so you get the burden of proof. Also, I don't have access to the text of the standard.)
So far as I know, the C standard does not differ from the C++ standard on what that operator does. If you claim it does, I'll ask you to document it.
Instead of throwing insults at others' level of knowledge, I suspect you should be a bit more cautious about your own.