0%

L-Value

Expressions that refer to memory locations are called “l-value” expressions. An l-value represents a storage region’s “locator” value, or a “left” value, implying that it can appear on the left of the equal sign (=). L-values are often identifiers.

Expressions referring to modifiable locations are called “modifiable l-values.” A modifiable l-value cannot have an array type, an incomplete type, or a type with the const attribute. For structures and unions to be modifiable l-values, they must not have any members with the const attribute. The name of the identifier denotes a storage location, while the value of the variable is the value stored at that location.

An identifier is a modifiable l-value if it refers to a memory location and if its type is arithmetic, structure, union, or pointer. For example, if ptr is a pointer to a storage region, then *ptr is a modifiable l-value that designates the storage region to which ptr points.

Any of the following C expressions can be l-value expressions:

  • An identifier of integral, floating, pointer, structure, or union type
  • A subscript ([ ]) expression that does not evaluate to an array
  • A member-selection expression (-> or .)
  • A unary-indirection (*) expression that does not refer to an array
  • An l-value expression in parentheses
  • A const object (a nonmodifiable l-value)
Read more »

markdown 语法sample

Itatic And Bold Sample
partial differential equasion***偏微分方程***
常微分方程_是这样解开的_
仰天大笑出门去,我辈岂是蓬蒿人


Order List Sample
遇见冬天的离别

孙燕姿的绿光

  1. 窗外的麻雀,消失在电线杆上
  2. 就是开不了口让她知道
  3. 断了的弦,再谈一遍
  4. 哪里跟那里
    1. 你的转变,想断掉的弦
    2. 你的美,已经追不回,追了又追我要不会
    3. 诶,小朋友在玩什么呀,
  5. 一波还未平息,一波早就过去

Read more »