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
Use the standard memcmp function from .
memcmp
memcmp(a, b, sizeof(a)) == 0
whenever a and b are equal.
a
b