title: C++ cin , Segment fault 11
body: <p>This gives me seg fault 11 when I input the string.
  Why am i getting the seg fault?
  It's so simple... where is the seg fault coming from?</p>
  
  <pre><code>int main(){
      char * str;
      printf ("please enter string : ");
      cin &gt;&gt; str;
      // reverse_str(str);   
  }
  </code></pre>