c = c < 4 ? c + 1 : 0;
It's shorter (which matters for client-side code), and makes it more explicit what you're attempting to accomplish.
Alternatively, increment with c++ and replace [c] with [c%4].
c = c < 4 ? c + 1 : 0;