И то-же говорит ANSI (+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено 02 декабря 2003 г. 10:33
В ответ на: 2 bialix (+) отправлено SМ 02 декабря 2003 г. 10:19

Implementation-defined behavior
The implementation must choose some (sensible) behavior and must document its choice. E.g. what the result of the modulus operator "%" is if one of the operands is negative.


Unspecified behavior
The standard explicitly does not impose any restrictions. An example would be the order of evaluation of function arguments.


Undefined behavior
Violations of constraints laid forth by the standard, and anything the standard explicitly declares as undefined. An example is the behavior on integer overflow. If undefined behavior is involved, a compiler or the compiled program may do nearly anything - in particular, it is allowed to crash or not to compile. So, undefined behavior is really a Bad Thing (TM)!

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru