Home > Back-end >  Take a look at this!
Take a look at this!

Time:12-28

Printf (" % d ", (m +=n, n));
The printf statements in parentheses is how operation?

CodePudding user response:

The comma expression, the final value of the formula is the value of the comma expression
So the final print is the result of the n value

CodePudding user response:

Printf output is the value of n,
Expression expression comma expression form is as follows: 1, 2, expression, 3... , the expression of n, comma expression of main point:
(1) the process of comma expression is: from left to right computational expressions individually,
(2) a comma expression as a whole, it has a value of the last expression (which is the expression of n) the value of the
(3) the comma operator priority in all operators in the lowest,
  • Related