title: Incompatible types when assigning to type char[] from type int
body: <p>let say I have this struct</p>
  
  <pre><code> struct person {
     char last_name [10];
   };
  typedef struct person Person;
  </code></pre>
  
  <p>And I fill this struct-object with a certain name</p>
  
  <pre><code>Person p;
  Person *ptrPerson = &amp;p;
  strcpy(ptrPerson-&gt;last_name, "Johnson"); 
  </code></pre>
  
  <p>And then I put this name in an array of type Person ... put in the first position</p>
  
  <pre><code>Person queue[10];
  queue[0] = *ptrPerson;
  </code></pre>
  
  <p>So far so good. But how do I nullify the arraypostion after that - or at least put a character "-" there instead:</p>
  
  <pre><code>queue[0].last_name = "-";
  </code></pre>
  
  <p>I get the following compilation error:</p>
  
  <p><em><strong>error: incompatible types when assigning to type 'char[10]' from type 'int'</em></strong></p>