In C (and C++), an assignment is not only a statement but also an expression that can be used within another statement. Both =
and +=
will modify their left hand operand, but they will also evaluate to another value that can be part of a larger expression. Typically they will be the same value as the result of the =
or +=
operation, though with C++ overloaded operators it could be just about anything.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…