Slight difference between C++ and C

In C++, results of assignment operation, prefix increment and prefix decrement are all lvalues, the updated objects.

Whereas in C, those results are all rvalues, just values of expressions, not objects that have memory loctions.

Error disappeared after changing the source file name extension from .c to .cpp

原文地址:https://www.cnblogs.com/idisposable/p/5474304.html