title: Proper input method to take char string input in C
body: <p>How would I best take input in a program that asks the user to enter a student name separated by a space and then the student score, EX:</p>
  
  <p><code>zach 85</code></p>
  
  <p>Because of the null terminator, will there be two enters that i will have to account for? I'm already using two scanfs in my program.</p>
  
  <pre><code>int main()
  {
     const int row = 5;
     const int col = 10;
     int i;
     char names[row][col];
     int scores[row];
     int total;
  
     // Read names and scores from standard input into names and scores array  
     // Assume that each line has a first name and a score separated by a space
     // Assume that there are five such lines in the input
     // 10 points
  
     for(int i = 0; i&lt;row; i++)
     {
         printf("Enter student name: \n");
         scanf("%s",&amp;names);
         scanf("%s", &amp;scores);
     }
     // Print the names and scores
     // The print out should look the same as the input source
     // 10 points
  
     for(int i = 0; i&lt;row; i++)
     {
         printf( "%s %d \n", names[i]  /*, scores[i] */ );       
     }
  }
  </code></pre>