ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Четверг
2 мая
1374481 Топик полностью
ЫЫyкпy (22.11.2023 21:44, просмотров: 133) ответил VladislavS. на Компилятору не понравилось, но он сделал.
Стандарт говорит что "If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined." А undefined behavior это: 

behavior, upon use of a nonportable or erroneous program construct or of erroneous data,

for which this International Standard imposes no requirements

NOTE Possible undefined behavior ranges from ignoring the situation completely with unpredictable

results, to behaving during translation or program execution in a documented manner characteristic of the

environment (with or without the issuance of a diagnostic message), to terminating a translation or

execution (with the issuance of a diagnostic message).

Взирая на нынешнее состояние отечества моего с таковым оком, каковое может иметь человек, воспитанный по строгим древним правилам, ... не могу я не дивиться, в сколь краткое время повредились повсюдно нравы в России. (с) кн. М.М. Щербатов.