title: I want to take comma-separated integers and place them in an array that terminates with a question mark at the end of the array in C
body: <p>C noob here. I'm trying to take in comma-separated integers and place them in an array that terminates with (and contains) a question mark. The input <strong>must</strong> have a comma and yet when I take the input it does not seem to require it. So far I have:</p>
  <pre><code>    char Array1[100];
      int i;
      do {
          scanf(&quot;%d,\n&quot;, &amp;Array[i]) {
          i++;
      } while (Array[i] != '?');
  }
  </code></pre>
  <p>I guess I'm trying to say that I want to make the delimiter (<code>,</code>) necessary for every digit input (except the last which must end in a question mark) but <code>scanf</code> seems to be brushing right past that requirement.</p>