//gcc 7.4.0 #include <stdio.h> #include<omp.h> int main(void) { int i,j; i=omp_get_thread_num(); printf("%d\n",i); #pragma omp parallel printf("\nNo: of threads in parallel region: %d",omp_get_thread_num()); return 0; }