3 ms·
No, it isn't. A right shift of a signed, negative value is implementation-defined (which means, something in particular happens, and the compiler or its docume
by kps 13y ago
No, it isn't.
A right shift of a signed, negative value is implementation-defined (which means, something in particular happens, and the compiler or its documentation is supposed to tell you what).
A left shift of a signed value is undefined (which means, the compiler is allowed to launch the missiles, or fail to launch the missiles, whichever is worse for you) if a nonzero bit could conceivable get into the sign.