zoukankan      html  css  js  c++  java
  • [整理]左值和右值

    c99 6.3.2.1/1
    An lvalue is an expression with an object type or an incomplete type other than void;
    53) What is sometimes called "rvalue" is in this International Standard described as the "value of an expression".
    An obvious example of an lvalue is an identifier of an object. As a further example, if E is a unary expression that is a pointer to an object, *E is an lvalue that designates the object to which E points.
    -----
    左值是对象类型的表达式, 而任意表达式都是右值.
    比如一个对象的标识符是左值. 对于指向一个对象的指针表达式E, *E也是一个左值(结果是对象类型).
  • 相关阅读:
    POJ 1017
    poj 2709
    poj 1328
    POJ 2386
    POJ 1065
    POJ 3728
    hdu--1004--Let the Balloon Rise
    hdu--2570--迷瘴(贪心)
    hdu--1257--最少拦截系统(贪心)
    hdu--1230--火星A+B
  • 原文地址:https://www.cnblogs.com/Benoly/p/3823622.html
Copyright © 2011-2022 走看看