title: Initializing entire 2D array with one value
body: <p>With the following declaration </p>
  
  <pre><code>int array[ROW][COLUMN]={0};
  </code></pre>
  
  <p>I get the array with all zeroes but with the following one</p>
  
  <pre><code>int array[ROW][COLUMN]={1};
  </code></pre>
  
  <p>I don’t get the array with all one value. The default value is still 0.</p>
  
  <p>Why this behavior and how can I initialize with all 1?</p>
  
  <p>EDIT: I have just understood that using <code>memset</code> with value as 1, will set each byte as 1 and hence the actual value of each array cell wont be 1 but <code>16843009</code>. How do I set it to 1?</p>