summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/09_2.c
blob: 22c4b2dbd1de7a01004bf09c0313000a0264bdc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define SIZE 20    /* work on 20 elements */

int data[SIZE];    /* some data */
int twice[SIZE];   /* twice some data */

main()
{
    int index;   /* index into the data */

    for (index = 0; index < SIZE; index++) {
    data[index] = index;
    twice[index] = index * 2;
    }
    return (0);
}