title: A method to assign the same value to all elements in an array
body: <p>I have an array with 50 elements</p>
  <pre><code>int arr[50];
  </code></pre>
  <p>and I want to set all elements to the same value. How can I do that?</p>