title: Pass array to a function instead of variable
body: <p>I have a pretty basic problem, but I really don't understand what's going on.</p>
  
  <p>I just want to create a function which takes an array as input instead of a double. Why are the following two code segments not the same, not even for j == 0? (I get different values when printing <strong>*buf</strong>)</p>
  
  <p>1.)</p>
  
  <pre><code>void
  SVPublisher_ASDU_setFLOAT64(SVPublisher_ASDU self, int index, double value)
  {
      uint8_t* buf = (uint8_t*) &amp;value;
  </code></pre>
  
  <p>print:</p>
  
  <pre><code>valueArray value: 1.145000
  </code></pre>
  
  <p>2.)</p>
  
  <pre><code>void
  SVPublisher_ASDU_setFLOAT64Array(SVPublisher_ASDU self, int index, const double* valueArray, int length)
  {
      for (int j = 0; j &lt; length; ++j) {
          uint8_t* buf = (uint8_t*) (valueArray + 8 * j);
  </code></pre>
  
  <p>print:</p>
  
  <pre><code>valueArray value: 3070733822295138354700875252470016317131267959765042782153548795915832793917922493698408448.000000
  </code></pre>
  
  <p>uint8_t is unsigned char</p>