Home > Back-end >  If statement
If statement

Time:06-11

If statement is not false, the output should not be 2?

CodePudding user response:

C==a is false, c=a is an expression, a value is assigned to c, the equivalent of c=a, the if (c)

CodePudding user response:

?? , ok, thank you thank you thank you thank you

CodePudding user response:

If don't I what matter, said very understand,
Use a colon equal sign: early language=said assignment, because assignment occur more often than the equivalent operation, so an equal sign said assignment, two equal values are equal,

CodePudding user response:

In work, if must write the if (x==0) (! It is safe to x),

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related