title: How can I use a conditional operator in printf but without the "else" part?
body: <pre><code>printf ("%d ", digitscont(&amp;myarray[i-1]) ? myarray[i-1] : );     // I'd like to do print nothing in the else part.
  </code></pre>
  
  <p>If I leave <code>:</code> without anything, it gives me an error:</p>
  
  <pre><code>error: expected expression
                  printf ("%d ", digitscont(&amp;myarray[i-1]) ? myarray[i-1] : );
                                                                           ^
  1 error generated.
  </code></pre>
  
  <p>How can I make my program to print nothing if the function <code>digitscount</code> returns 0?</p>