asked 96.3k views
5 votes
In a fixed-length array, the size of the array is known before the program is compiled.

a) True
b) False

1 Answer

6 votes

Final answer:

In a fixed-length array, the size of the array is known before the program is compiled.

Step-by-step explanation:

True, in a fixed-length array, the size of the array is known before the program is compiled. This means that the number of elements that can be stored in the array is fixed and cannot be changed during runtime.

For example, if you declare an array of integers with a fixed length of 5, you can only store 5 integers in that array. Attempting to add or remove elements beyond the fixed length will result in a compile-time error.

answered
User Dmestrovic
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.