have a variable uint8 x.
Now i want to apply bitwise operation on x as so: uint8 y = x << 240
What will be the value of y? will this line revert? will the value be all 0?
y will equal zero in that case, since you're shifting left more than the amount of bits in the number.
thanks. So there isn't a safety mechnism embedded for this operator?
Обсуждают сегодня