title: What happens to memory after I call MPI_Init()?
body: <p>Suppose I have some code that looks like this:</p>
  
  <pre><code>#include "mpi.h"
  
  int main( int argc, char** argv )
  {
      int my_array[10];
      //fill the array with some data
  
      MPI_Init(&amp;argc, &amp;argv);
  
      // Some code here
  
      MPI_Finalize();
      return 0;
  }
  </code></pre>
  
  <p>Will each MPI instance get its own copy of my_array? Only rank 0? None of them? Is it bad practice to have any code before <code>MPI_Init</code> at all?</p>