Oct 29, 2012 at 1:06am UTC
Write a function
bool equals(int a[], int a_size, int b[], int b_size)
that checks whether two arrays have the same elements in the same order.
I'm not understanding exactly what I'm supposed to do here and don't know where to start. Can somebody break it down into simpler terms perhaps?
Oct 29, 2012 at 1:11am UTC
So should i type a code that asks for input and then compares it?
Oct 29, 2012 at 1:29am UTC
You can (and should) write such code to verify your function works properly, but if that's all there is to the assignment, it's not necessary.
Oct 29, 2012 at 2:29am UTC
also, realize there are four arguments in your function. you need to make sure both arrays have the same NUMBER of elements, and that those elements are in the same ORDER.