title: error C2440: '=' : cannot convert from 'int' to 'char [5]'
body: <p>error C2440: '=' : cannot convert from 'int' to 'char [5]'
  help me)</p>
  
  <pre><code>    char type[5];
      switch (rec[n-1].recptr-&gt;qtype)
      {
          case 'p':type='pcs'; break; //here is problem
          case 'm':type='kgs'; break; // and here is too
          default: printf("incorrect code");break;
      }
  </code></pre>