title: How can i combine a list of float values into one character?
body: <p>So im new to c and i am trying to combine a list of float values into a character and am unsure of what to do, ive tried using &amp;&amp; as follows:</p>
  <pre><code>*message = &quot;%f %f %f %f %f %f\n&quot; &amp;&amp; val1 &amp;&amp; val2 &amp;&amp; val3 &amp;&amp; val4 &amp;&amp; val5 &amp;&amp; val6;
  printf(&quot;%f\n&quot; message);
  </code></pre>
  <p>But the print comes out corrupted. ive also tried this using comma separation:</p>
  <pre><code>*message = &quot;%f %f %f %f %f %f\n&quot;, val1, val2, val3, val4, val5, val6;
  printf(&quot;%f\n&quot; message);
  </code></pre>
  <p>but it says that this adds it to an array which isnt what i need.</p>
  <p>Is there any way to combine float values into a character as ive done above?</p>