2

I wanted to know why it's possible to store a negative int into a byte but I get errors when I try to store a negative int that is constant into a byte?

  • 4
    The answer is [here](http://stackoverflow.com/questions/7823268/why-should-i-explicitly-surround-with-unchecked). The constant can't be converted at compile time so you get compile error even though you can force it with `unchecked`. – Crowcoder Jan 14 '16 at 21:40

0 Answers0