hi all, i am trying to walk through a 2 d array to find a sequence of letters in c
i tried this
void letterfind(char arr[AMT][AMT], char result[])
{
int i;
int j;
for(i=0; i< AMT; i++)
{
if(result==arr[0]) //row 0 ,any column
printf("%s",result)
}
}
right now i just want to search the top row for the same letter as the desired word. is this on the right track?
Thanks for any help
i tried this
void letterfind(char arr[AMT][AMT], char result[])
{
int i;
int j;
for(i=0; i< AMT; i++)
{
if(result==arr[0]) //row 0 ,any column
printf("%s",result)
}
}
right now i just want to search the top row for the same letter as the desired word. is this on the right track?
Thanks for any help