Abstract

Multiplicative expressions evaluate the product, quotient, or remainder of factors. Normal numeric promotions are applied before the operation is performed. 

Syntax

Syntax Diagrams

Multiplicative Expression Syntax Diagram

BNF

multiplicative-expression
::= <cast-expression>
::= <multiplicative--expression> <multiplicative-operator> <cast-expression>

EBNF

multiplicative-expression
::= <cast-expression> ( <multiplicative-operator> <cast-expression> ) *

Form

multiplicative-operator
multiplication-operator | division-operator | remainder-operator
multiplication-operator
→ *
division-operator
/
remainder-operator
%

Semantics

multiplicative-expression
  1. The left and right operands are evaluated, in either order.
  2. The values of the left and right operands are coerced to the same computational type, if necessary..
  3. The operator is applied to the (coerced) operand values;
  4. The result of the operation is the value of the expression.

Reference Links

Multiplicative Operators <multiplicative-operator>
Cast Expression <cast-expression>

Other Languages

C Now
C Multiplicative Expression <multiplicative-expression>
C++ Now C++ Multiplicative Expression <multiplicative-expression>
Java Now Java Multiplicative Expression <multiplicative-expression>
PHP Now PHP Multiplicative Expression <multiplicative-expression>