Q. What is Ordered directive?
This directive is used in combination with for and parallel for directives to cause an iteration to be executed in order that it would have been happened if written as sequential loop. Syntax of ordered construct is like this:
#pragma omp ordered new-line
structured-block