for every int x: x+1 > x … is this always true?

后端 未结 4 1899
鱼传尺愫
鱼传尺愫 2021-01-18 00:27

I\'m just starting to learn C at school, I\'m trying to get a hold of the basic concepts.

Our homework has a question,

for every int x: x+1 > x

4条回答
  •  粉色の甜心
    2021-01-18 00:59

    I don't want to hand you the answer, so I'll reply with a question that should get you on the right track.

    What is x + 1 when x is the largest possible value that can be stored in a 32-bit signed integer? (2,147,483,647)

提交回复
热议问题