Exclusive OR encoding
^ is the operator for exclusive ORing.Quote:
C++ does not have a built-in Exclusive-OR function, however.
That'd get me element 51, not 50. If the array size was 50, this would've given me an access violation.Quote:
To find element 50 of an array named "employees" you have to access it like this:
C & C++ use zero-based indices.
I'm sorry if someone noted this in some other post, I failed to find any. And I was really frustrated by this, never expected it, that I haven't continued reading the journal.