title: Error: incompatible types when assigning to type ‘char[25]’ from type ‘char *’
body: <p>I'm trying to assign the values of a struct to a map but the following error message appears after compiling: </p>
  
  <pre><code>error: incompatible types when assigning to type ‘char[25]’ from type ‘char *’ 
  </code></pre>
  
  <p>in </p>
  
  <pre><code>map[i].n=m.n
  </code></pre>
  
  <p>My struct is defined this way:</p>
  
  <pre><code>struct m1{
  int c;
  char n[25];
  int q_m;
  int q;};
  </code></pre>
  
  <p>Part of my code:<br></p>
  
  <pre><code>    struct m1 m;
      struct m1 *map = 0;
      scanf("%d",&amp;m.c);
      scanf("%s",&amp;m.n);
      scanf("%d",&amp;m.q_m);
      scanf("%d",&amp;m.q);
  
      map[i].c=m.c;
      map[i].n=m.n;
      map[i].q_m=m.q_m;
      map[i].q=m.q;
  </code></pre>