title: Assigning a value to a char array (String) in C
body: <p>I tried to assign a String a value in C, but for me it doesn't work...
  This is, what I tried to do:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main()
  {
  char k[25];
  k == "Dennis"
  printf("My Name is %s", k);
  }
  </code></pre>
  
  <p>Sample Output would be: My Name is Dennis</p>
  
  <p>However, I receive the a warning:
  warning: comparison of distinct pointer types lacks a cast k == "Dennis";</p>
  
  <p>I tried to find a solution on this website, but could not find one, where it was the same error with assigning a value to a char array (a string) in C</p>
  
  <p>Also tried initializing my char as</p>
  
  <pre><code>  char *k[25];
  </code></pre>
  
  <p>still didn't work...</p>