title: initialization of 'const char **' from incompatible pointer type 'char *'
body: <p>I am new in learning C. I have an issue in returning double star pointer from the function.</p>
  <p>This is my code.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdbool.h&gt;
  
  #include &quot;api.h&quot;
  
  void init() {
    // You can initiate and calculate things here
  }
  
  /**
   * Return the given list in reversed order. Each element in the given list contains a single character.
   * 
   * typedef struct {
   *   int count;
   *   const char * * elements;
   * } string_list;
   * 
   * list_of_chars: string_list
   * 
   * returns: string_list
   */
  string_list reverse(string_list list_of_chars) {
    // Write your code here
    char X[list_of_chars.count];
    
    //X[0] = *list_of_chars.elements[0];
    
    for (int i = 0; i &lt; list_of_chars.count;i++){
    X[i] = *list_of_chars.elements[i];
    }
    printf(&quot;%c&quot;, X[0]);
  
    string_list return_value = {
      .count = 0,
      .elements = &amp;X[0],
    };
    return return_value;
  }
  </code></pre>
  <p>But I am getting initialization of 'const char **' from incompatible pointer type 'char *'. I tried multiple solutions but non of them worked.</p>