Q. Explain about For Loop Construct?
The loop build causes the for loop to be splitted into portions and portions shared amongst threads in team. The syntax of loop construct is :
#pragma omp for [set of clauses.]
for-loop
The clause is one of the subsequent:
private(list)
firstprivate(list)
lastprivate(list)
reduction(operator: list)