title: Confusion with malloc. Creating an array of strings with 4 slots
body: <pre><code>int main() {
  
    char *p[] = {"hello", "goodbye"};
  
    char **a;
    a = malloc(4 * 8);
  
  }
  </code></pre>
  
  <p>I want a to have double the slots of p. How would I successfully do that without manually putting in numbers. All IK is the size of p should be there and x 2 for the double. How would I get the 8?</p>