209k views
4 votes
Arrays may be ________ at the time they are ________.

A) resized, executed
B) re-scoped, deleted
C) initialized, declared
D) pre-compiled, typecast
E) None of these

User Bpy
by
7.9k points

1 Answer

4 votes

Final answer:

The correct answer to the question is C) initialized, declared. Arrays are often initialized with values when they are declared, and their size is typically fixed upon declaration in many programming languages.

Step-by-step explanation:

Arrays may be initialized at the time they are declared. This means when you create an array, you can also set its initial values. In some programming languages like Java and C++, the size of an array is fixed upon declaration and cannot be dynamically resized without creating a new array. Initialization refers to the process of assigning values to the array elements at the time of its declaration. Therefore, the correct answer is C) initialized, declared.

User ChristDist
by
8.4k points