Home > Back-end >  C language small white for help! The problem is why c is equal to zero is not equal to 1?
C language small white for help! The problem is why c is equal to zero is not equal to 1?

Time:01-20

If a, b, c value is 0, execute the statement + + a | | + + b& & + + c; , a, b, c value is ___c____ respectively,
,1,1 1 (A) (B) 1, 0 (C) 1, 0, 1, 1 (D)

CodePudding user response:

From left to right, + + a, and judgment, after a is equal to 1, and because it is | | symbols, and at the back of the don't perform, so c is zero

CodePudding user response:

Your grades:
An exemption to the full score or (papers to pass the and the experiment failed)

Don't you keep an eye on the experimental steps?
Maybe you love learning, you will, but the computer won't,

CodePudding user response:

Or the short circuit value problem, it is recommended that the original poster to learn | | and & amp; & amp;;

CodePudding user response:

+ + a result is 1, the condition was established, so the | | at the back of the handle is ignored

CodePudding user response:

reference 3 building self-confidence boy reply:
or the short circuit value problem, suggest that the original poster to learn | | and & amp; & amp;;

Thanks to guide I understand now!
  • Related