Home > Back-end >  What a great god help me to write this one, by the way, tell me why?
What a great god help me to write this one, by the way, tell me why?

Time:09-19

CodePudding user response:

Last comma after comma operator, returns the value of the expression, from left to right in turn, will return to, and finally the value of the expression that is the value of a + 5:15 + 5=20

CodePudding user response:

Should is to calculate a=3 * 5 first, then a=15, then the printf (% d), the value behind the final value of the expression in brackets, namely a + 5=15 + 5=20, so print 20

CodePudding user response:

reference 1/f, confident boy reply: ,
comma operator returns the last a comma after the value of the expression, from left to right in turn, will return to, and finally the value of the expression that is the value of a + 5:15 + 5=20

Thank you for your answer.

CodePudding user response:

reference 1/f, confident boy reply: ,
comma operator returns the last a comma after the value of the expression, from left to right in turn, will return to, and finally the value of the expression that is the value of a + 5:15 + 5=20

A great god I don't know how to give you the score, can you tell me how to do?

CodePudding user response:

reference 4 floor m0_46505358 response:
Quote: reference 1/f, confident boy reply: ,
comma operator returns the last a comma after the value of the expression, from left to right in turn, will return to, and finally the value of the expression that is the value of a + 5:15 + 5=20

A great god I don't know how to give you the score, can you tell me how to do?

Is how I refer to your answer,

CodePudding user response:

reference 4 floor m0_46505358 response:
Quote: reference 1/f, confident boy reply: ,
comma operator returns the last a comma after the value of the expression, from left to right in turn, will return to, and finally the value of the expression that is the value of a + 5:15 + 5=20

A great god I don't know how to give you the score, can you tell me how to do?

Points is not important, mainly is the problem to be solved the ~