title: storing char* array in C
body: <p>I'm trying to create and store a <code>char*</code> array.</p>
  
  <p>So, first I tried this:</p>
  
  <pre><code>int main() {
      char* values[3];
      values[0] = "Hello";
      values[1] = "Mew meww";
      values[2] = "Miau miau =3";
  
      for(int i=0; i&lt;sizeof(values); i++)
          printf("%s", values[i]);
  }
  </code></pre>
  
  <p>it works with this OUTPUT:</p>
  
  <blockquote>
    <p>Hello
    Mew Mew
    Miau miau =3</p>
  </blockquote>
  
  <p>If i try:</p>
  
  <pre><code>printf("%s", "Tamaño del diccionario: ");
  int tam;
  scanf("%i", &amp;tam);
  char* dic[tam];
  Word words[tam];
  
      for(int i=0; i&lt;tam; i++)
  {
      printf("Palabra %d: ",(i+1));
      scanf("%32s", &amp;dic[i]);
  }
  
          for(int i=0; i&lt;tam; i++)
  {
      printf("%s",dic[i]);
      printf("\n");
  }
  </code></pre>
  
  <p>Show non-legible stuff like "0xassdfsdf"</p>
  
  <p>What can I do to store it right in memory?</p>