I am comparing data stored in a 2D array that I read from a file to a character array with data in it. It looks like this:
char file[10][20];
file[0] = "test";
char arry[20] = "test";
if (arry == file[0]) {
//do something
}
else {
// do something else
}
The issue is that the //do something statement is not being executed, I have made sure there are no new line characters that were left on when the file was read into the array. Thanks for any help