True, I was just trying to avoid the maths, to me it seemed simpler to have a variable that you increment by 1 each time you store a value in c[]. In fact using post increment ++ can make the code even less verbose and more efficient.
4 Likes