/* filename arrayUpdate.c */ /* OpenMP tutorial example */ #include #include #include #include #include struct timeval start, end; int c[1000]; int main( int argc, char *argv[] ) { int i; for (i=0; i<1000; i++) c[i] = 1.0; for (i=0; i<1000; i++) c[i] = c[i-1]+1.0; for (i=0; i<1000; i++) { printf("c[%d] = %d\n", i, c[i]); } return 0; }