title: arduino, function to return char array
body: <pre><code>_10_11.ino: In function 'void loop()':
  _10_11:73: error: initializer fails to determine size of 'results'
  _10_11.ino: In function 'char getData()':
  _10_11:160: error: invalid operands of types 'const char*' and 'const char [5]' to binary 'operator+'
  </code></pre>
  
  <p><br></p>
  
  <p>In short, i have a function <code>char getData()</code> which returns <code>char output[50] = "1: " + cmOne + " 2: " + cmTwo + " 3: " + cmThree + " 4: " + cmFour;</code> where <code>int cmOne, cmTwo, cmThree, cmFour</code>.</p>
  
  <p>In loop, i call:</p>
  
  <pre><code>char results[] = getData();
  
      client.println("1: %i", results[0]);
      client.println("2: %i", results[1]);
      client.println("3: %i", results[2]);
      client.println("4: %i", results[3]);
  </code></pre>
  
  <p>I know that i'm wrong with my data types, assigning etc but am abit off with how to do it best, any suggestions??</p>