Trying to expand my understanding of arrays

How many elements are in these arrays?

1
2
3
4
5
6
7
int test_scores [7] = (88, 100, 90) 
//7 correct? Bc [7] defines the amount of arrays

int test_scores [ ] = (88, 100, 90)
//3 correct? Bc [ ] is not defined so we have to go by how many numbers are in the parentheses 

You're correct. 7 in the first example. 3 in the second example.
Topic archived. No new replies allowed.