I'm a bit new to programming in c and have come across the problem of trying to compare two two-dimensional arrays (let's say 10 by 10).
Could I write for instance
if(array1==array2)
printf("the arrays are the same");
or do I have to write
if(array1[10][10]==array2[10][10]")
printf("the arrays are the same");
?
I also would like to figure out, (if anyone can help me) how to figure out if an array is all full of zeroes, i.e. how to figure out if it's empty.
Any help would be appreciated. Thank you.