Why are unsigned integers error prone?
问题 I was looking at this video. Bjarne Stroustrup says that unsigned ints are error prone and lead to bugs. So, you should only use them when you really need them. I've also read in one of the question on Stack Overflow (but I don't remember which one) that using unsigned ints can lead to security bugs. How do they lead to security bugs? Can someone clearly explain it by giving an suitable example? 回答1: One possible aspect is that unsigned integers can lead to somewhat hard-to-spot problems in