in reply to Re: Prefix and postfix increment/decrement operator query
in thread Prefix and postfix increment/decrement operator query

Did you mean "...11 instead of 10..." since you initialize your variable to 10 rather than to 20?

I was talking about the answer of the operation $a++ + $a--. But yes, as per your observation.the value of $a should be 11 instead of 10.

  • Comment on Re^2: Prefix and postfix increment/decrement operator query