title: string specifier ( %d , %f etc...)
body: <pre><code>#include &lt;stdio.h&gt;
  #define Type int
  
  int main()
  {
          Type x=3;
          printf("%d",x);
          return 0;
  
  }
  </code></pre>
  
  <p>The code is simple and works fine. My question is, if I change  <code>#define Type int</code> to  <code>#define Type float</code> so , I have to change <code>%d</code> to <code>%f</code> as well. Is there any way to have a generic specifier, that would work for all <code>int</code>, <code>float</code>, <code>char</code>, <code>string</code> etc... So that, if I change <code>#define Type int</code> then I don't have to change the format specifiers within <code>printf()</code> function?</p>