title: in c++ is this a good practice to initialize char array with string literal?
body: <p>in c++ is this a good practice to initialize char array with string?
  such as:</p>
  
  <pre><code>char* abc = (char *) ("abcabc");
  </code></pre>
  
  <p>I see a lot of these in my co-worker's code. Should I change it to the right practice?
  such as</p>
  
  <pre><code>std::string abc_str = "abcabc";
  const char* abc= abc_str .c_str();
  </code></pre>