title: Scanf parsing string input into array of chars
body: <p>I want to parse a user-input (using scanf) in 2 separate arrays. g++ compiles without error, but I get a memory-access-error (core dumped).
  (in german: "Speicherzugriffsfehler (Speicherabzug geschrieben)")</p>
  
  <pre><code>char *top[10];
  char *bottom[10];
  
  for(i = 0; i &lt; 5; i++){
      printf("Karte %d: Obere Werte? ", i );
      scanf( "%s", top[i] );
      printf( "Karte %d: Untere Werte? ", i);
      scanf( "%s", bottom[i] );
  }
  </code></pre>
  
  <p>What's the problem here? I tried using <code>"stringcpy"</code> with a temp-var <code>("stringcpy(top[i], temp)")</code>, but it didn't work either.</p>
  
  <p>Any suggestions?</p>