title: Passing users input into an array
body: <p>How can I receive a users input (A list of numbers separated by commas, eg. 3455, 564, 23435), and store it into an array?</p>
  
  <p>I know ahead of time that I will be receiving 20 values from the user. </p>
  
  <p>I have tried passing the users input "directly" into an array of size 20, but I get the error message: format specifies type 'int <em>' but the argument has type
        'int (</em>)[10]' [-Wformat]</p>
  
  <p>I have also looked at using the strtok function, although I do not want the delimiter (') still in the array. </p>
  
  <p>Any ideas will be much appreciated,</p>
  
  <p>thank you.</p>