#include "mpi.h"provides basic MPI definitions and types.
MPI_Initstarts MPI.
MPI_Finalizeexits MPI.
printfrun on each process.
mpicc -o hello hello.c mpirun -np 2 hellompirun is not part of the standard, but some version of it is common with several MPI implementations. The version shown here is for the MPICH implementation of MPI.