Originally Posted by
RichSelian
that comparing function is foolish. it returns 1 when the last elements is equal.
or you can simply use memcmp() to compare two arrays.
Okay so I got the following from some reasearch i did. Not sure if its okay.
Code:
#include <string.h>
....
int x[26], t[26];
....
result = memcmp (x,t,26);
if (result == 0)
printf ("%d",x);
return (0);
}
never mind got it to work with the old code. I noticed that if I loop it for the result = 1 i can compare them until the loop is done. Will post the code in a while because it might need more work to do :/