Expressions and Operators
Argue for your limitations, and sure enough, they’re yours.
—Richard Bach, Illusions
In this chapter, we’ll cover expressions and operators in the context of how they differ from C#. We’ll start with a caveat: don’t assume that expression evaluation is the same in C# and C++. C# and C++/CLI have different rules that control the evaluation of expressions, and this can surprise you if you’re writing overly complex expressions.
Here is an old C++ trick that often shows up on interview questions. It is not guaranteed to work according to the C++ standard, but it works on all of the major C++ compilers for the ...