I have a homework problem for my C programing class but I am so lost.....
The question is:
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. In other words, the function must check if A[0] is equal to B[0], A[1] is equal to B[1], and so forth. The function is to return true if all elements are equal and false if at least one elements is not equal.
Any help on how to get this to work would be soooooooo appreciated. I have been trying for about a week and cant get anything to work.
The question is:
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. In other words, the function must check if A[0] is equal to B[0], A[1] is equal to B[1], and so forth. The function is to return true if all elements are equal and false if at least one elements is not equal.
Any help on how to get this to work would be soooooooo appreciated. I have been trying for about a week and cant get anything to work.
Comment