title: Errors compiling C code with sizeof from command line
body: <p>I wrote the following code in Nano from the Linux command line to get errors when compiling:</p>
  
  <p><a href="https://i.stack.imgur.com/Ag7CH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ag7CH.png" alt="Warnings when compiling"></a></p>
  
  <p>I'd like to know what I need to change in my code to make it compile properly.  I am trying to get the number of bits in each data type listed to print on a single line.  </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main(void){
      char A;
      unsigned char B;
      int a;
      unsigned int b;
      long c;
      unsigned long d;
      float e;
      double f;
      long double g;
  
      printf(
          "%c %c %i %u %li %lu %f %lf %Lf\n",
           sizeof(char), sizeof(unsigned char),
           sizeof(int), sizeof(unsigned int),
           sizeof(long), sizeof(unsigned long),
           sizeof(float), sizeof(double), sizeof(long double)
      );
  
      return 0;
  }
  </code></pre>