title: how user input can be one dimensional from multidimensional?
body: <p>Abnormal behavior of <code>scanf()</code> function.</p>
  
  <pre><code>#include&lt;bits/stdc++.h&gt;
  using namespace std;
  
  char c[100][100];
  int main()
  {
      for(int i=1;i&lt;=10;++i) scanf("%s",c[i]+1);
  }
  </code></pre>
  
  <p>my question is , since the we declare <code>c</code> as a <code>2</code> dimensional <code>array</code> , how can <code>scanf</code> take only one dimensional input , without any compilation <code>error</code>? </p>
  
  <p><a href="https://ideone.com/954oeO" rel="nofollow noreferrer">https://ideone.com/954oeO</a></p>
  
  <p>is there some default value for the second parameter?</p>