181k views
22 votes
C provides a data structure, the ___________, which stores a fixed-size sequential collection of elements of the same type.

1 Answer

4 votes

Answer:

Array

Step-by-step explanation:

The array is a data structure in C that can hold a predefined quantity of the same type of element in an ordered fashion, and can be defined with the following syntax: type name[amount] = {elements}; where type is the type (like int), amount is the capacity it should be defined at, name is what you want to name the array, and elements are a comma separated list of elements to initialize the array with. You can also change the values of elements by using this syntax: name[index] = newelement; where index is which index to change, and new element is what to set it to.

User Sagis
by
6.9k points