title: how to create a char array in c++?
body: <p>I am trying to create a pointer to a char and pass it to function as a char*.
  here is my code to define the char array<br>
  it seems the compiler does not recognize the end of the string 
  because the function display does not show a correct string</p>
  
  <pre><code>char myword[] = { 'H', 'e', 'l', 'l', 'o', '\0' }; 
  char  str[] = {'M','i','k','e',' ','s','m','i','t','h','\0'};
  char str2[] = "Dragic\0";
  char* pname=&amp;str[0];
  char* pteam=&amp;str2[0];
  Display(myword);
  </code></pre>