Home > Back-end >  c
c

Time:09-27

To prove two integers is equal, you can write a/b==0

CodePudding user response:

Two integer==good, directly a==b
A/b==judge two equal, just a less than b

CodePudding user response:

Can't such as 1 and 2 differ but 1/2=0
And arithmetic is equal to the number of division is equal to 1

CodePudding user response:

Can't oh, just less than

CodePudding user response:

Hey, are you? I'll to mix skill points
Equal a ^ b==0 can be judged

CodePudding user response:

A % b==0 & amp; & A/b==1 can, in addition to a=0, a/b can't=0

CodePudding user response:

CodePudding user response:

==is done directly, or! (a ^ b)

CodePudding user response:

If it is a floating point, be careful, it is better to give a accuracy, since 2.3 in the computer is likely to be 2.29999999999

A. & gt; E=b - 1-13 & amp; & a<=b + 1 e - 13

CodePudding user response:

Can't be! Simply

CodePudding user response:

Not ah, 5/6==0, right? 9/f, right, just a==b