Time:06-11
CodePudding user response:
when M is equal to zero, into a bool type to false, the end of cycle
while (check this expression is 0) Is 0 exit cycleIs not zero continue to cycle
while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false
Quote: refer to the fifth floor Italink reply: while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false A little understood, that is, when M reduce to zero is the loop body is over?
Quote: refer to 7th floor qq_45718176 response: Quote: refer to the 5 floor Italink response: while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false A little understood, that is, when M reduce to zero is the loop body is over? You and that's on the logic of the code, to 0 is the end of cycle, while (x) the cycle, if is 0, continued to circle, 0 is out of circulation,
Quote: refer to the 5 floor Italink response: while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false A little understood, that is, when M reduce to zero is the loop body is over?
Quote: refer to the eighth floor datoulaile123 response: Quote: refer to 7th floor qq_45718176 response: Quote: refer to the 5 floor Italink response: while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false A little understood, that is, when M reduce to zero is the loop body is over? You and that's on the logic of the code, to 0 is the end of cycle, while (x) the cycle, if is 0, continued to circle, 0 is out of circulation, This is the c language logic?
Quote: references 9 f qq_45718176 response: Quote: refer to the eighth floor datoulaile123 response: Quote: refer to 7th floor qq_45718176 response: Quote: refer to the 5 floor Italink response: while in parentheses is a bool type parameters, if you give other types, there will be an implicit type conversion, turn int bool rule is that non-zero to true, 0 to false A little understood, that is, when M reduce to zero is the loop body is over? You and that's on the logic of the code, to 0 is the end of cycle, while (x) the cycle, if is 0, continued to circle, 0 is out of circulation, This is the c language logic? Why M not to less than zero cycle
Page link:https//www.codepudding.com/Backend/112993.html