title: error: incompatible types in assignment of 'char*' to 'char [20]'
body: <p>I'm new to this C++ environment and I am having difficulty with my constructor.
  Here is my code:</p>
  
  <pre><code>class Student {
      char name[20];
      long number;
  public:
      Student (char nm[20], long val) : 
           name(nm), number(val) {}
  </code></pre>
  
  <p>When I compile it, it gives me an error saying incompatible types in assignment of <code>char*</code> to <code>char[20]</code>. </p>
  
  <p>How can i fix this??</p>