1 an array variable has a multiple values b multiple names c
(1) an array variable has
a multiple values
b multiple names
c multiple data types
(2) if prices is an array with 10 between the square brackets with all elements initialized to 5, printing prices[10] will:
a display 5
b display 10
c compiler error
d display unknown value
Solution
1)Ans)Multiple values(a)
Reason:
An Array variable has single name but has mutiple values.
2)Ans)Display Unknown value(d)
Reason:
int prices[10]={5,5,5,5,5,5,5,5,5,5};
The size of the array is 10.But the array index ranging from 0 to 9
cout<<prices[10];
If we trying to display prices[10] we will get unknown value.
_____________________________
