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) a[19]

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 .

Computer Science & Information Technology

You might also like to view...

Compressing images in a Word document does not change the file size until the file is saved

Indicate whether the statement is true or false

Computer Science & Information Technology

Which stakeholder provides departmental information to ensure that appropriate controls are in place for departmental data?

A. CSO B. executive-level management C. CFO D. business unit management

Computer Science & Information Technology