0

I have:

int i = -INT32_MIN
unsigned int ui = (unsigned int)i

What will happen when I cast the int to an unsigned int?

  • What are the rules for casting?
  • Is casting safe?
  • Will casting always produce a predictable value?
Avi
  • 7,469
  • 2
  • 21
  • 22
user1283776
  • 19,640
  • 49
  • 136
  • 276

0 Answers0