Question: Write a function compareArrays that compares two arrays. The function takes three arguments: the first argument (of type char) is the size of the two
Write a function compareArrays that compares two arrays. The function takes three arguments: the first argument (of type char) is the size of the two arrays, and the second two arguments (both of type "array of const char") are the two arrays. The function returns a "char" that is equal to 1 if the arrays have the same elements and 0 if they do not. Note that "size" elements are checked.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
