// use of firstprivate() void foo(int * a, int n, int g) { int i; #pragma omp parallel for firstprivate (g) for (i=0;i