what is the best way to compare int arrays b and c with a:
int a[] = {0,1,0,0,1}; int b[] = {0,1,0,0,1}; int c[] = {1,1,0,0,1};
b and c are
If you mean
then
memcmp(a, b, sizeof(a)); /* returns zero for a match */ memcmp(a, c, sizeof(a)); /* returns nonzero for no match */