In C an assignment is an expression where the value is the new value of what was being assigned to.
In a = b = 1
, both a and b will be 1.
a = *(p = p + 1)
is the same as
p += 1
a = *p
, so ++p.
Perhaps *(p += 1) will be to your liking?
It's ice cream. Apparently having the three flavours like this is called "Neapolitan ice cream".
Tyoda
joined 1 month ago