title: What is the return type of sizeof operator?
body: <p>What is the return type of <code>sizeof</code> operator? cppreference.com &amp; msdn  says <code>sizeof</code> returns <code>size_t</code>. Does it really return a <code>size_t</code>?
  I'm using VS2010 Professional, and targeting for x64.</p>
  <pre><code>int main()
  {
      int size   = sizeof(int);     // No warning
      int length = strlen(&quot;Expo&quot;);  //warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
      return 0;
  }
  </code></pre>
  <p>I have this question because first line is not issuing any warning, whereas the second does. Even if I change it to char size, I don't get any warnings.</p>