title: printf: unknown conversion type character ')' in format -Wformat
body: <p>I have written a C program it is giving the following compilation error.</p>
  
  <pre><code>rand_distribution.c:24:7: warning: unknown conversion type character ‘)’ in format [-Wformat]
  </code></pre>
  
  <p>at this line </p>
  
  <pre><code> printf("%d: %d (%.2lf %) \n", i+1, frequencies[i],100.0 * frequencies[i] / TOTAL_COUNT);
  
  My objective to get an output like this.
  1: 333109 (16.66%)
  2: 333113 (16.66%)
  3: 333181 (16.66%)
  4: 333562 (16.68%)
  5: 333601 (16.68%)
  6: 333434 (16.67%)
  </code></pre>
  
  <p>That is to say '%' before the ')' should be printed as it is without being interpreted.How do I achieve this?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;  // for rand(), srand()
  #include &lt;time.h&gt;    // for time()
  
  const int TOTAL_COUNT = 2000000;  // Close to INT_MAX
  const int NUM_FACES = 6;
  int frequencies[6] = {0}; // frequencies of 0 to 5, init to zero
  
  int main()
  {
     srand(time(0)); /* seed random number generator with current time*/
  
     /* Throw the die and count the frequencies*/
     int i = 0;
     for (i = 0; i &lt; TOTAL_COUNT; ++i)
     {
        ++frequencies[rand() % 6];
     }
  
     /*Print statisics*/
     for (i = 0; i &lt; NUM_FACES; i++)
     {
        printf("%d: %d (%.2lf %) \n", i+1, frequencies[i],100.0 * frequencies[i] / TOTAL_COUNT);
     }
  }
  </code></pre>