Because the prefix version returns the incremented value, it returns the object itself as an lvalue. The postfix versions return an rvalue.

  • 因为前置操作返回加1后的值,所以返回对象本身,这是左值。而后置操作返回的则是右值。
目录 查词历史