Home > Back-end >  C unsigned int and int overflow, why unsigned int can pass?
C unsigned int and int overflow, why unsigned int can pass?

Time:09-25

Combination problem in dynamic programming, unsigned int can not int

CodePudding user response:

The unsigned int spills into 0, won't cause an array subscript cross-border
Int overflow after turned negative, can cause an array subscript crossing the line
  • Related