In an array:
A. all the elements need not have the same type
B. one of the elements must be 0
C. all the elements must have the same type
D. all the elements must be 0
E. none of the above
C++ array question?
C is correct.
When you declare an array you do something like this:
int a[20];
int=integer-%26gt;the type of data your array elements will be
They are all the same type!
a[20]-%26gt;a is the name and [20] is the dimension.
Therefore you will create an array which has 20 elements of the type int(eger).
Reply:C.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment