size of the input string
<p>I am wondering how come the sizeof function returned 8 no matter the length of my input</p>

<pre><code>int main(){
   string input;
   getline(cin,input);
   cout &lt;&lt; "size of input is  " &lt;&lt; sizeof(input) &lt;&lt; endl; //I am guessing 
//it returns the size of a pointer because my OS is 64 bits.
   return 0;
}
</code></pre>

<p>So my question is that where the implicit conversion happened?  here is the declaration of <strong><em>getline</em></strong>, </p>

<pre><code>istream&amp; getline ( istream&amp; is, string&amp; str );
</code></pre>

<p>Also, this sort of conversion always happen, i.e from whatever to a pointer type, is there a general case for that? Thank you.</p>
