Array c++ sequential search

Mar 24, 2017 at 8:17am
I want to ask
I'll make a sequential search with array static

A[50] = {13,34,2,1,23,12,45,29,12,11,98,7,4,53};
But when i run that program, it just viewing 13 34 2 1 23 12 45 29 because there is second "12" and can't load next number after it.
How the way it can viewing all number altough any same number there?
Mar 24, 2017 at 9:28am
Can you paste the code?

You can iterate through whole array with a for loop:
1
2
3
for(int index = 0; index < size; index++){
    cout << A[index] << " ";
}
Topic archived. No new replies allowed.