title: c++ convert 2 dimensional char array const char**
body: <p>I have an function which takes const ** char as a function parameter. The input I have to call this function is a string which I need to convert to const char** where each row will be a single character of the string.</p>
  
  <blockquote>
    <p>"string" => {"s", "t", "r", "i", "n", "g"}</p>
  </blockquote>
  
  <p>I was able to create a char** with the above data but converting it to const char** I couldn't do. Compiler obviously gave error. Then I created a 2 dimensional character array char input[string.size()][2]. But with this I am at lost on how to convert it to const char** </p>
  
  <p><strong>UPDATE :</strong> This did what I was looking for - (const char **)temp where temp is char[size][2] </p>