Given the array declaration, int a[20]; The last (legal) element is written as:
a. a[2]
b. a[0]
c. a
d. a[20]
e. a[19]
e) the element at 19 (declared_size –1) is the last element.
Explanation: a) b) and d) are wrong. Array elements at index 0 and 2 clearly are not last, these come before element at 19 . c) a, the name of the array is the address of the first element, it is not an element. d) there is no element 20 .
You might also like to view...
What does SSL stand for?
A) Sockets Secure Layer B) Session Sockets Layer C) Secure Sockets Layer D) Sockets Session Layer
The ____ attributes define the dimensions of a text area.
A. height and width B. rows and cols C. top and bottom D. high and wide
The setListData method of the JList component takes a(n) _______ as an argument.
a) int b) String c) one-dimensional array d) ArrayList
The PERCENTRANK.INC function excludes 0 and 1
Indicate whether the statement is true or false