Closed tstreiff closed 4 years ago
float f; ++f; ^ Expected integer or pointer
++ and -- should work on any expression for which exp += 1 is legal. From the C standard: "The expression ++E is equivalent to (E+=1)." And += supports either: pointer += integer or: arithmetic += arithmetic.
I copied your change, and added some test cases.
I have just checked and it works! thanks!
++ and -- should work on any expression for which exp += 1 is legal. From the C standard: "The expression ++E is equivalent to (E+=1)." And += supports either: pointer += integer or: arithmetic += arithmetic.