問題文
An int is divided by another int and the quotient is stored in a double. Why does the quotient show no fractional part?
選択肢
- The operator itself evaluates using decimal rules, and the conversion to the wider type consequently occurs at the operands in this expression.
- The operator itself evaluates using decimal rules, and the conversion to the wider type consequently occurs at the assignment in this expression.
- The operator itself evaluates using truncating rules, and the conversion to the wider type consequently occurs at the operands in this expression.
- The operator itself evaluates using truncating rules, and the conversion to the wider type consequently occurs at the assignment in this expression.