Array
    Index

    1. #include <stdio.h>
    2. int main() {
    3. int const index = 0;
    4. int numbers[5] = { 1, 2, 3, 4, 5 };
    5. printf("numbers[%d] = %d\n", index, numbers[index]);
    6. numbers[index] = numbers[index - 1] * 2;
    7. printf("numbers[%d] = %d\n", index, numbers[index]);
    8. return 0;
    9. }

    代码2-4:数组基础
    V_{7@9U~O@HQZB9{3}%670K.png
    程序运行结果