title: Why does "memset(arr, -1, sizeof(arr)/sizeof(int))" not clear an integer array to -1?
body: <p>Is it not possible to use <code>memset</code> on an array of integers? I tried the following <code>memset</code> call and didn't get the correct integer values in the <code>int</code> array.</p>
  
  <pre><code>int arr[5];
  memset (arr, -1, sizeof(arr)/sizeof(int));
  </code></pre>
  
  <p>Values I got are:</p>
  
  <pre><code>arr[0] = -1
  arr[1] = 255
  arr[2] = 0
  arr[3] = 0
  arr[4] = 0
  </code></pre>