Weird expressions (Maximal Munch)

Is the expression a+++++b valid? Similarly is a++++ valid?

Answer:[1]

for discussion on a+++++b, see [1]

a++++ is invalid, because, a++ returns a rvalue, so the next ++ operator cannot be applied
on the rvalue.

No comments: