My experience is that most people use single letters, e.g.:
i,
j,
k,
...
or
x,
y,
or
r,
c (for row/column)
or
w,
h (for width/height)
, etc.
But I learned a great alternative a long time ago, and have used it ever since: double letter variables.
// recommended style ● // "typical" single-letter style
●
for (ii=0; ii<10; ++ii) { ● for (i=0; i<10; ++i) {
for (jj=0; jj<10; ++jj) { ● for (j=0; j<10; ++j) {
mm[ii][jj] = ii * jj; ● m[i][j] = i * j;
} ● }
} ● }
In case the benefit isn't immediately obvious: searching through code for any single letter will find many things that aren't what you're looking for. The letter i occurs quite often in code where it isn't the variable you're looking for.