[an error occurred while processing this directive]
|
> стандарт языка оговаривает ненулевое значение для "true".
> Но это не значит, что оно может меняться проивольно.
> Разрабочик компилятора вправе выбирать его конкретное значение,
> но оно будет одно и то же во всех случаях.
Посмотрел я свежий стандарт. iso9899-c99.pdf.
----------------------
The == (equal to) and != (not equal to) operators are analogous to the relational operators except for their lower precedence.90) Each of the operators yields 1 if the specified relation is true and 0 if it is false. The result has type int. For any pair of operands, exactly one of the relations is true.
----------------------
Так что результат по последнему стандарту должен быть одинаков.
E-mail: info@telesys.ru