Whats the answer with these questions?

1.How many data types can the elements of an array have?

2.What happens if the number of initializes is more than the size of the array?

3.Suppose that we have the following array declaration:

const int mean = 6;
int num[mean];

What will be the value displayed if cout<<num[8]; is executed?
a combination of Googling and executing code for yourself will answer these questions.
Topic archived. No new replies allowed.