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,298
  • 1
  • 19
  • 22
user1283776
  • 16,122
  • 38
  • 122
  • 229

0 Answers0