title: c++ size of a struct with a function
body: <p>The result says <code>12</code>.<br>
  Where is the function <code>foobar</code> stored in the memory?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  struct ABC_ {
      int a;
      int b;
      int c;
      int foobar(int a) {
          return a;
      }
  };
  int main() {
      ABC_ ABC;
      cout &lt;&lt; sizeof ABC;
      return 0;
  }
  </code></pre>