Yes, you may assign a
is a signed int
8-bit wide, the promotion to a wider integer type, like
, happens automatically and without complains). It is a bit unusual (and you don't really need it, in the posted example), but there's nothing wrong in that.