title: Printf long long int in C with GCC?
body: <p>How do I printf <code>long long int</code> and also <code>unsigned long long int</code> in C99 using GCC? </p>
  
  <p>I have searched the other posts which suggest to use <code>%lld</code> but it gives these warnings:</p>
  
  <blockquote>
    <p>warning#1: unknown conversion type character 'l' in format [-Wformat]|<br>
    warning#2: too many arguments for format [-Wformat-extra-args]|</p>
  </blockquote>
  
  <p>For the following attempt:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
     long long int x = 0;
     unsigned long long int y = 0;
     printf("%lld\n", x);
     printf("%llu\n", y);
  }
  </code></pre>