I have a structure :
struct vertex
{
double a; double b;
}
struct polygon
{
int numofVertex;
vertex v[10];
}
How to send this nested structure in MPI using MPI_Send?
Since your structure does not contain any pointers, it's easily possible.
MPI_Send(ptr_to_your_struct, sizeof(struct polygon), MPI_BYTES, ...);