Go to the first, previous, next, last section, table of contents.

配列の要素の代入

配列の要素は左辺値です。したがって、awkの変数と同じように、次のように値を代入できます。

array[subsript] = value

arrayは配列名です。式subscriptは、値を代入したい配列の要素の添字です。式valueは、その配列の要素に代入する値です。


Go to the first, previous, next, last section, table of contents.