/****************************************************************************** * FILE: ser_array.c * DESCRIPTION: * Serial Example - Array Assignment - C Version * In this simple example, an array is initialized and values assigned. * AUTHOR: Blaise Barney * LAST REVISED: 04/15/05 ****************************************************************************/ #include #include #define ARRAYSIZE 16000000 int main(int argc, char *argv[]) { int i; /* loop variable */ float data[ARRAYSIZE]; /* the intial array */ printf("Starting serial array example...\n"); printf("Using array of %d floats. Requires %ld bytes\n",ARRAYSIZE,sizeof(data)); /* Initialize the array */ printf("Initializing array...\n"); for(i=0; i