10,822 views
39 votes
39 votes
C provides a data structure, the ___________, which stores a fixed-size sequential collection of elements of the same type.

User Pratibha
by
2.9k points

1 Answer

20 votes
20 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 Chris Koenig
by
3.0k points