title: printing multiple different things in single printf statement using C
body: <p>I'm trying to turn three printf statements into one longer statement, in C.
  I wish to turn:</p>
  
  <pre><code>printf("The current system time is ");
  printf("%f", get_current_time());
  printf("\n");
  </code></pre>
  
  <p>into a single <code>printf</code> statement, where function <code>get_current_time</code> returns a <code>double</code>, such as <code>1459231814.421397</code> or similar.
  The closest I have managed to get is</p>
  
  <pre><code>printf("The current system time is " , ("%f" (get_current_time())), "\n");
  </code></pre>
  
  <p>which returns only one error, which is:</p>
  
  <p><code>error: called object is not a function or function pointer</code>:</p>
  
  <p><code>printf("The current system time is " , ("%f" (get_current_time())), "\n");"</code></p>
  
  <p>and it points out the <code>"</code> before the <code>%f</code>.</p>
  
  <p>the three separated <code>printf</code> statements print:</p>
  
  <p><code>"The current system time is 1459231876.947026"</code></p>
  
  <p>or similar a set amount of times, each time on a new line, which is what I want.</p>
  
  <p>I don't understand why it works when separated, but adding them together into one long statement fails. I'm sure I must be formatting the longer statement incorrectly, just not sure exactly what I'm doing wrong.
  Any help is hugely appreciated, and sorry if this question is not formatted very well, it's the first question I've asked.</p>