I can't figure out why the function is not returning the integer 1 or 0 ... Can someone please help I've tried everything that I felt I know about programming and can't figure it out. I need a solution to my program not how to write it with a different program unless mine is completely wrong ... Thanks and help is very appreciated ... Here's the question and my program:
/*We have two arrays A and B, each of 10 integers. Write a function that
tests if every element of array A is equal to its corresponding element in
array B. The function is to return true (1) if all elements are equal and
false (0) if at least one element is not equal.*/