Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

базовая литература по программированию

04.09.06 00:42
Re: базовая литература по программированию
 
  scorpi_ скептик
в ответ igna 04.09.06 00:32, Последний раз изменено 04.09.06 00:52 (scorpi_)
Зачем столько цитировать? Там нас интересует только
В ответ на:
After those conversions, one of the following shall hold:
- The second and third operands have the same type; the result is of that type.
- The second and third operands have arithmetic or enumeration type; the usual arithmetic conversions are performed to bring them to a common type, and the result is of that type.

Что отсылает нас к 5(9):
В ответ на:
Many binary operators that expect operands of arithmetic or enumeration type cause conversions and yield result types in a similar way. The purpose is to yield a common type, which is also the type of the result.
This pattern is called the usual arithmetic conversions, which are defined as follows:
- If either operand is of type long double, the other shall be converted to long double.
- Otherwise, if either operand is double, the other shall be converted to double.
...

Во-вторых, при чём тут всё это?
 

Перейти на