I was wondering if anyone can give me some tips on using nested for loops to check characters diagonally in like an 8x8 2D array.
I know how to check rows and columns by reversing the variables in the for statement

for(i = 0; i < whatever; i++)
for(j = 0; j < whatever; j++)
{
whatever code inside
}
Then just reversing the for loops with j 1st then i. But I am having some difficulty on checking the 2D array diagonally(in both directions). If anyone knows how to do it, I would really appreciate the knowledge. THANK YOU!!!!!