[Solved] data[tail_++ %maxsize] meaning and order


The value of the expression tail_++ is tail_.

The fact that ++ increments the value of the variable tail_ is a separate issue. The value of the expression is tail_.

Therefore the value of tail_++ % maxsize is the same as tail_ % maxsize. Just be aware that after this code executes, the value of the variable tail_ will have incremented.

0

solved data[tail_++ %maxsize] meaning and order