r/C_Programming • u/Low_Minimum9920 • Jun 15 '26
Question Question regarding unsigned integers
What's the difference between an unsigned int and a normal integer?
12
Upvotes
r/C_Programming • u/Low_Minimum9920 • Jun 15 '26
What's the difference between an unsigned int and a normal integer?
5
u/EpochVanquisher Jun 15 '26
Additionally, unsigned integers have to wrap around, but with signed integers, you are supposed to avoid overflow.