C++ would not return the next increment of C. It should be ++c surely?