C语言warning的收集和总结

1.

warning:

   suggest parentheses around comparison in operand of '&'

分析:

  &运算符的优先级较低,低于==和!=运算符。

solution:

  在&比较之后,加一个括号。

demo:

  错误:

  正确:

原文地址:https://www.cnblogs.com/yiwenbo/p/10794107.html