Home > Back-end >  C language pow function
C language pow function

Time:09-17

Why will prompt expression must include plastic or enumeration types, if I wouldn't be an error forced into int

CodePudding user response:

Generates a binary operator % remainder divided exactly by the second operand first operand (after the general arithmetic conversion; Pay attention to the type of the operands must have the integer type), if a/b can be expressed as a result type, then (a/b) * b + a % b==a, if the second operand is zero, the behavior is undefined, if the business can't expressed in the result type a/b, a/b and a % b behavior has not been defined (this means that the complement system INT_MIN % 1 is not defined).

CodePudding user response:

reference 1/f, the truth is right or wrong response:
binary operator % produced by the second operand divisible first operand of remainder (after the general arithmetic conversion; Pay attention to the type of the operands must have the integer type), if a/b can be expressed as a result type, then (a/b) * b + a % b==a, if the second operand is zero, the behavior is undefined, if the business can't expressed in the result type a/b, a/b and a % b behavior has not been defined (this means that the complement system INT_MIN % 1 undefined),

Got it, thank you brother
  • Related