title: Memset issue with floating point array in C
body: <p>I'm trying this simple example to populate a floating point array with 5.6, but upon printing the values out, every value is just 0.0.</p>
  
  <pre><code>#include &lt;string.h&gt;
  float testArr[20];
  memset(testArr, (float)5.6, 3*sizeof(float));
  printf("Value 1: %lf\n",testArr[0]);
  printf("Value 2: %lf\n",testArr[1]);
  printf("Value 3: %lf\n",testArr[2]);
  printf("Value 4: %lf\n",testArr[3]);
  </code></pre>
  
  <p>I've also tried not casting 5.6 as a float, setting <code>testArr[20] = {}</code> and <code>testArr[20] = {0}</code>, but they also result in the same 0.0.</p>