Which implementation is better and why?
Element by Element comparison using a for loop or memcmp() implementation
int a[] = {1,2,3};
int b[] = {1,3,5};
memcmp(a, b, sizeof(int)*n)
OR
 for (i = 0; i < n ; i++)
    {
       if (a[i] == b[i])
        {
            /* some Code */
        }
    }
 
    