title: c++ sizeof() of a class with functions
body: <p>I have a C++ question.
  I wrote the following class:</p>
  
  <pre><code>class c
  {
      int f(int x, int y){ return x; }
  };
  </code></pre>
  
  <p>the sizeof() of class c returns "1".
  I I really don't understand why it returns 1.</p>
  
  <p>Trying to understand better what is going on, I added another function:</p>
  
  <pre><code>class c
  {
       int f(int x, int y){ return x; }
       int g(int x, int y){ return x; }
  };
  </code></pre>
  
  <p>Now the following really got me confused! sizeof(c) is still 1 (!?!?!?!).
  So I guess that functions doesn't change the size of the class, but why??? and why does the size is 1 ? And is it compiler specific ?</p>
  
  <p>Thanks! :-)</p>