GDB shows the obj->start_point is incremented after the whole evaluation >=.
But C Primer Plus told me ++ has the higher precedence than >=.
So why the obj->start_point doesn't increment first? Is the book wrong?
if (obj->start_point++ >= obj->data + obj->data_size) { https://stackoverflow.com/questions/65866601/why-postfix-increment-is-conducted-at-last-in-a-condition-evaluation January 24, 2021 at 10:22AM
没有评论:
发表评论