How do you define an array in the C language?
In C language, to define an array, you specify the type and name of the array, followed by the size of the array. For example:
int numbers[5]; // 定义一个包含5个整数的数组
The code above defines an array called numbers, which contains 5 integers. You can also initialize the values of the array when defining it, as shown below:
int numbers[5] = {1, 2, 3, 4, 5}; // 定义并初始化一个包含5个整数的数组
In C language, arrays are indexed starting from 0, so in the example above, numbers[0] will be 1, numbers[1] will be 2, and so on.