Home > Back-end >  How do I get this expression?
How do I get this expression?

Time:10-20

Comma expression, should not be the value of an expression to pay last y?
Why not 10 is 6?

CodePudding user response:

Comma is different on both sides of the part, the scope of=just before a comma

CodePudding user response:

In all of the operators, the comma is the lowest priority,

CodePudding user response:

Will not because the comma expression, computed from right to left?

CodePudding user response:

Y=(x=a + b), b + c
This kind of writing is equivalent to:
(y=(x=a + b)), (b + c)

CodePudding user response:

According to your idea should write:
Y=(x=a + b), (b + c)
Because of the comma operator in the c language is the lowest priority
  • Related