title: How to take a integer array in a single line input [in C]
body: <p>How to take single line input and store values in its array in C language</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int arr[5];
  
      scanf(&quot;%d&quot;, &amp;arr[0]);
  
      for(int i=1; i &lt;= 5; i++){
          printf(&quot;%d\n&quot;, arr[i-1]);
      }
  
      return 0;
  }
  </code></pre>