Time:10-29
CodePudding user response:
just sent to you, only is % higher priority -, negative number after % was as positive processing
Quote: 1/f, reference and 蘤 old crepe reply: just sent to you, only is % higher than the priority -, negative number after % was as positive processing Why is that? Minus sign (-) priority than %, % higher than the priority is a minus sign (-),
just sent to you, only is % higher than the priority -, negative number after % was as positive processing
first explain the works: % % is a dependent on/operator, the C language standard: with int a, b; Is a strictly equal to (a/b) * b + a % b, that is to say, the result of a % b strictly equal to a - (a/b) * b, then you can explain your example, - 8% 5=- 3: (8) % (5)=(3) => (8) - (8)/(5) * (5)=(3) 8% - 5=3: The (8) % (5)=(3) => (8) - (8)/(5)) * (5)=(3)
Quote: refer to the second floor m0_46328473 response: Quote: 1/f, references and 蘤 old crepe reply: just sent to you, only is % higher priority -, negative number after % was as positive processing Why is that? Minus sign (-) priority than %, % higher than the priority is a minus sign (-), : don't know why, should involve the underlying operations, it's not a question of priorities That is independent of the two reasons, there is no causal relationship between
Quote: 1/f, references and 蘤 old crepe reply: just sent to you, only is % higher priority -, negative number after % was as positive processing Why is that? Minus sign (-) priority than %, % higher than the priority is a minus sign (-),
Quote: refer to the third floor and 蘤 old crepe reply: Quote: refer to the second floor m0_46328473 response: Quote: 1/f, references and 蘤 old crepe reply: just sent to you, only is % higher priority -, negative number after % was as positive processing Why is that? Minus sign (-) priority than %, % higher than the priority is a minus sign (-), : don't know why, should involve the underlying operations, it's not a question of priorities That is independent of the two reasons, there is no causal relationship between I see what you mean, you that is right, I can understand that, but I think the notion of May 4th floor is better, and a % b=a - (a/b) * b, this formula established in all cases,
do you still really ah, this established - 8% - 3=3 also, online search less than you to this definition? How do you know?
Page link:https//www.codepudding.com/Backend/73874.html