Right shift of a negative integer
suggest changeint signed_integer = -1;
// The right shift operation exhibits implementation-defined behavior:
int result = signed_integer >> 1;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents