Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Left Shifts and Castings
#2
Yes that is correct. The result must be typecasted in order to conform with rule 10.5.

The typecast to unsigned char in the first example will not have any effect at all. The typecast operator has higher priority than
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)