Here is my code
change this line
int arr[row][colomn];
to
int arr[100][100];
also
if ( arr[startrow][endcol] == value) {
cout << "found the value at row:" << startrow << "column:" << endcol;
return;// you forgot this line
}
Modified Code
i hope this help
if you have doubt feel free to ask
NOTE
you have asked a new doubt here
but you can also reply on the previous doubt
and share the code there
now mark resolved the previous doubt