CHAPTER 11
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 ...
Get C++ 2013 for C# Developers,Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.