什么是操作数 3是操作数吗 判断两个操作数是否相等与判断两个实数是否相等有什么区别
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
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.
3是整型常量
判断a,b两个操作数是否相等 if (a==b)
判断两个实数f1,f2是否相等 if (fabs(f1-f2)<1e-5)
是啊,没什么区别