Arrays are ____________. group of answer choices fixed-length entities none of these choices data structures that contain up to 10 related data items variable-length entities

Respuesta :

Arrays are fixed-length entities.

Arrays are a linear data structure that stores the element in it in sequential order.  The array contains multiple values in a single variable. It reduces the effort to declare variables for each value. It has fixed-length entitities.Because after declaration, you can changes its size. So it is fixed in nature.  

An array contains fixed-length entities. For example, the variable whose type is integer can only store a value of up to that integer data type size. So each entity or value is of fixed length. As you declare an array, for example, int price [10]. It stores 10 values of price of fixed-length up to integer data type. When you declare an array, it has a fixed length. When the array is declared you can’t change its length.

To declare an array, first, you define its data type, then specify its name, and then in the square brackets, you need to specify the number of values or elements it should store.

For example

 Int  item_price[5];

The above statement store 5 items price. To access the specific value of an array, you need to specify its index number.

To assign value we do the following

Item_price={10,20,23,15,20}

For example, if we want to know the price of 4th item, we use the below statement

Item_price[3]; // because the array index start at 0.

While the other options are incorrect because array don’t have variable length-entities. An array is a linear data structure that can store thousands of related data items. It does not restrict you to store to a specific limit. It has fixed-length entities.

you can learn more about Array at

https://brainly.com/question/26104158

#SPJ4

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE