1 and 3 code segments are correctly creating a four- element array and initializes it so that each element stores its index.
A comma-separated set of constant expressions encased in braces () serves as an array's initializer. An equal sign (=) is placed in front of the initializer. Not every element in an array needs to be initialized. If an array is partially initialized, the value 0 of the proper type is assigned to any uninitialized items. The same is true for array elements with static storage duration. (All variables declared with the static keyword and variables with function scope have static storage duration.)
Initializers for arrays can be specified in one of two ways:
array items must be initialized in subscript order when using initializers written in C89 language. Array elements can be initialized in any order using defined initializers, which let you specify the values of the subscript components to be initialized.
To know more about array visit:
https://brainly.com/question/14375939
#SPJ4