1 knowledge points learned in this lesson:
(1) Once you have defined the array, you can use it. The C language specifies that only a single array element can be referenced, but not the entire array at a time.
(2) When defining an array, the square brackets are constant expressions, which represent the length of the array, which can include constants and symbolic constants, but not variables.
2. Problems encountered during the experiment and solutions:
There are basic examples in the book, and will not find the answer in the book. Finish the homework according to the example in the book.
3. Experience of experiment and summary of the study in this chapter:
(1) The subscript of an array starts from 0 and the subscript cannot be crossed.
(2) Array elements are used in exactly the same way as variables of the same type.
(3) As with the initialization of simple variables, when you define an array, you can also assign an initial value to a group element. Its general form: Type an array group name [array length]={initial value table};
The 42-d array is defined as: Type an array group name [length of line] [column];
The elements referencing a two-dimensional array are assigned two subscript, subscript and column subscript, in the form: array name [subscript] [column subscript]
Branch assignment initial value, general form: Type an array group name [President degree] [column length]={{initial value table 0},...,{initial value k}, ...};
Experiment 10--definition and reference of one-dimensional arrays