title: returning a pointer to an array of uint8_t from a C function - get compiler errors
body: <p>I have a function:</p>
  
  <pre><code>uint8_t*  createTestBuffer()
  {
  
      uint8_t buffer[] = {5,7,3,4,1,9,3};
      return &amp;buffer;
  }
  </code></pre>
  
  <p>runing it:</p>
  
  <pre><code>uint8_t *buff = createTestBuffer();
  </code></pre>
  
  <p>returns compiler errors:</p>
  
  <pre><code>c_programming.c:11:9: warning: incompatible pointer types returning 'uint8_t (*)[7]' from a function with result type
        'uint8_t *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
          return &amp;buffer;
  </code></pre>
  
  <p>Im returning a pointer to an array of uint8_t from my function. So what am I getting wrong here?</p>