title: Multiple inputs in a single line using scanf()?
body: <p>I used <code>scanf()</code> function and realized that I could input only one number into an array using it. Is there any way to read the whole number in a single line?  </p>
  
  <p>ex: </p>
  
  <pre><code>for(i=0;i&lt;5;i++)
       {
       scanf("%d",&amp;arr[i]);
       }
  </code></pre>
  
  <p>I wanted to read all the 5 digits in a single line.. Hope I'm clear enough!</p>