title: Char array in a struct - incompatible assignment?
body: <p>I tried to find out what a struct really 'is' and hit a problem, so I have really 2 questions:</p>
  
  <p>1) What is saved in 'sara'? Is it a pointer to the first element of the struct?</p>
  
  <p>2) The more interesting question: Why doesn't it compile? 
  GCC says "test.c:10: error: incompatible types in assignment" and I can't figure out why...
  (This part has been solved by your answers already, great!)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  struct name {
      char first[20];
      char last[20];
  };
  
  int main() {
      struct name sara;
      sara.first = "Sara";
      sara.last = "Black";
      printf("struct direct: %x\n",sara);
  
      printf("struct deref: %x\t%s\n", *sara, *sara);
  
  
  }
  </code></pre>
  
  <p>Thanks for your help!</p>