操作数和表达式Operands and Expressions

“操作数”是运算符作用于的实体。An "operand" is an entity on which an operator acts. “表达式”是用于执行以下操作的任意组合的一系列运算符和操作数:An "expression" is a sequence of operators and operands that performs any combination of these actions:

  • 计算值Computes a value

  • 指定对象或函数Designates an object or function

  • 生成副作用Generates side effects

    C 中的操作数包括常量、标识符、字符串、函数调用、下标表达式、成员选择表达式以及通过将操作数与运算符组合或将操作数括在括号中而形成的复杂表达式。Operands in C include constants, identifiers, strings, function calls, subscript expressions, member-selection expressions, and complex expressions formed by combining operands with operators or by enclosing operands in parentheses. 主表达式中提供了这些操作数的语法。The syntax for these operands is given in Primary Expressions.

另请参阅See Also

表达式和赋值Expressions and Assignments