// sample03 配列

    int a[8]
    int b[4]
    int c
    int d[2]
    
    a[0] = 1
    a[1] = 2
    a[2] = 3
    a[3] = 4
    a[4] = 5
    a[5] = 6
    a[6] = 7
    a[7] = 8
//  a[8] = 9    //!< エラーとなる.
    
    b[0] = 11
    b[1] = 12
    b[2] = 13
    b[3] = 14
//  b[4] = 15   //!< エラーとなる.
    c = 21
//  c[0] = 22   //!< エラーとなる.
    
    d[0] = 31
    d[1] = 32
    
    data[0] = 101
    data[1] = 102
    data[2] = 103
    data[3] = 104
    data[4] = 105
    data[5] = 106
    data[6] = 107
    data[7] = 108
//  data = 109  //!< エラーとなる.
    
    data_x[0] = 201
    data_x[1] = 202
    data_x[2] = 203
    data_x[3] = 204
    data_x[4] = 205
    data_x[5] = 206
    data_x[6] = 207
    data_x[7] = 208
    data_x = 209
    
    print   a[0]
    print   a[1]
    print   a[2]
    print   a[3]
    print   a[4]
    print   a[5]
    print   a[6]
    print   a[7]
    print   b[0]
    print   b[1]
    print   b[2]
    print   b[3]
    print   c
    print   d[0]
    print   d[1]

    print   data[0]
    print   data[1]
    print   data[2]
    print   data[3]
    print   data[4]
    print   data[5]
    print   data[6]
    print   data[7]

    print   data_x[0]
    print   data_x[1]
    print   data_x[2]
    print   data_x[3]
    print   data_x[4]
    print   data_x[5]
    print   data_x[6]
    print   data_x[7]
    print   data_x

    print   a[0]+a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]
    print   data[0]+data[1]+data[2]+data[3]+data[4]+data[5]+data[6]+data[7]
    
    //! 添え字に変数を使用する
    c = 2
    print   data_x[ a[ a[ c ] ] ]
//          a[2] = 3
//          a[3] = 4
//          data_x[4] = 205

//          data_x[ a[ a[ 2 ] ] ]
//          data_x[ a[    3   ] ]
//          data_x[       4     ]