Hello. I'm new to C programming and attending a web course. We learned about arrays but I still struggle to understand how to compare values in an array. Say I have
Code:
{2 4 6 1 5}
and I want to compare index 0 with index 1,2,3,4 not by typing
Code:
array[0]
and
Code:
array[1]
but
Code:
array[k] with array[?]
.

Thank you in advance, Mike