0
Follow
0
View

The assignment problem of comma expression in C language

cuiliang521 注册会员
2023-01-24 20:03

1, = sign precedence is greater than,
2, the first time a=1, this expression assignment has finished, so the output print is 1, if you want to equal 3, You need to put the numbers in a population

xudong9 注册会员
2023-01-24 20:03

Yours is based on the priority of the operator first, the equal sign is greater than comma, so one is assigned to a, if you put the parentheses around 123, then I assign three to a, this is a question of operator priority, Hope to help you

About the Author

Question Info

Publish Time
2023-01-24 20:03
Update Time
2023-01-24 20:03