Home > Back-end >  C explain
C explain

Time:10-03

Who can help me and explain thanks just learning C

CodePudding user response:

Run the computer

CodePudding user response:

reference 1/f, Old English to catch small's reply:
run the computer to know

One by one try to understand

CodePudding user response:

Is the problem of operator precedence
The first line
X, y all non-zero so! X!!! Y is 0, multiplication or 0
!!!!!!!!! X is equal to the! X is 0
The second line
X or the results I to true value 1, j - 3 is not 0, the result is a value of 1
X The third line
C is the ASC code 107, 5 k and c is the true value of 1, j is the assignment for 8 to 0, and the two or the true value of 1, because I was that I==1 is true, so the result is true value 1
X + y is 0, not the result of true value 1
The output of
0 0
1 0
1 1
Do not understand precedence and associativity to check more

CodePudding user response:

The
reference 3 floor m0_44977681 response:
is the problem of operator precedence
The first line
X, y all non-zero so! X!!! Y is 0, multiplication or 0
!!!!!!!!! X is equal to the! X is 0
The second line
X or the results I to true value 1, j - 3 is not 0, the result is a value of 1
X The third line
C is the ASC code 107, 5 k and c is the true value of 1, j is the assignment for 8 to 0, and the two or the true value of 1, because I was that I==1 is true, so the result is true value 1
X + y is 0, not the result of true value 1
The output of
0 0
1 0
1 1
Do not understand precedence and associativity to check more
thank you
  • Related