[Example 1: int y =1<<-1; // undefined behavior, shift is negativestatic_assert(sizeof(int)==4&& CHAR_BIT ==8);
int y1 =1<<32; // undefined behavior, shift is equal to the bit width of intint y2 =1>>32; // undefined behavior, shift is equal to the bit width of int — end example]