r/C_Programming • • Jun 15 '26

Question Question regarding unsigned integers

What's the difference between an unsigned int and a normal integer?

11 Upvotes

93 comments sorted by

View all comments

Show parent comment

2

u/Snezzy_9245 Jun 16 '26

And its predecessor the PDP7 had one's complement available, with the confusing positive and negative zero.

1

u/Jumpstart_55 Jun 16 '26

Indeed! I remember using cdc 6500 which had one’s complement integer math.