Q. Define syntax of MPI_Scan function?
MPI_Scan (Sendaddr,, Receiveaddr , count, datatype, op, comm):
It merges the partial values in p final results that are received into the Receiveaddr of all p processes in the group comm.
MPI_Barrier(cmm):
This function synchronises all processes in group comm.