Forcing regions of a code to be executed by only the master thread using OMP MASTER

This exercise presents a simple program to demonstrate the use of OMP MASTER. Compile and run the code provided below. What happens if you remove the "#pragma omp master" line?

 

#include < stdio.h>
#include < omp.h>

main(){
#pragma omp parallel
 {
#pragma omp master
    {
      printf("%d THIS IS EXECUTED ONLY BY THE MASTER THREAD
", omp_get_thread_n
um());
    }
 }
}