Hi guys, I have a quick question on comparison in one array rather than two, I am not sure if it's possible but it sounds doable and I searched around and couldn't find anything.
Basically I'm just storing values in each elements in one array sum[SIZE], and I want to compare the first element to the next, if it's the same value then return 1 else return 0, I have a feeling a for loop is involved but I just can't seem to grasp onto the concept of how to compare elements in one array.
Hope someone can clarify the logic for me and much appreciated for any help ^.^