Hi can you explain what is the return value if it not returning anything and the if the (if condition is getting wrong for first time)?? int getmarkedcol(int row) { int i; for (i = 0; i < n; i++) { if (a[row][i] == 'Q') { return (i); break; } } }
there is a mistake i would like to mention it its that c1-c2!=r1-r2 its working diganolly for this position . . . . but not for this postion . . . . can we fix the formula for other digonal position also ? :)
Code isnt showing output even if n is changed by row
Can you explain
for getmarkedcol( ) what does the function return if a[row][i]=='Q' case is not encountered ?
it returns cell position i mean column index position.
explain the feasible function.... how the placement for the diagonal; works?????
Hi can you explain what is the return value if it not returning anything and the if the (if condition is getting wrong for first time)??
int getmarkedcol(int row) {
int i;
for (i = 0; i < n; i++)
{
if (a[row][i] == 'Q')
{
return (i);
break;
}
}
}
okay
Thanks...its very helpful!
there is a mistake i would like to mention it its that c1-c2!=r1-r2 its working diganolly for this position
.
.
.
.
but not for this postion
.
.
.
.
can we fix the formula for other digonal position also ? :)
use abs(c1-c2)!=abs(r1-r2).
first you understand it
Send me source code
show me ur code
fake accent
Fake accent.
This code does not run
change (i=0; i
Still doesnt work
what u get and what u wrote show the code
Blank chess board
but I got the result