Answer:
The C code is:
int numbers[4] = {4, 32, 8, 10};
Step-by-step explanation:
Array is the collection of elements of same data type. Arrays use indexing to access its elements.
Declaring an array:
An array is declared using the following syntax.
data_type array_name[array_size]
Initializing an Array:
An array with built-in data type can be initialized when declaring it. The elements are written in the curly brackets in the order they have to stored in array.
Syntax of declaring and initializing an array of size n is:
data_type array_name[n] = {value_1,value_2,value_3,.....,value_n}
Given
We have to declare an array of size 4 and elements in order 4,32,8 and 10 and the name has to be numbers so the C code is:
(Assuming the header files and main function already added in the code)
int numbers[4] = {4, 32, 8, 10};