I have offered to help with an existing project and my knowledge of c is embarrasingly low. There are simply two numbers I’m trying to add and store to an accumulator.
lets assume some numbers to demonstrate:
stock 7
unitFlow -4
Then I add them together like:
stock+=unitFlow
Here I was expecting the result 3 but it actually stores -11
3