title: take string input using char* in C and C++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6282198/reading-string-from-input-with-space-character">Reading string from input with space character?</a>  </p>
  </blockquote>
  
  
  
  <p>I am facing problem in taking a string(technically character array) as input.
  Suppose i have the following declaration:</p>
  
  <pre><code> char* s;
  </code></pre>
  
  <p>I have to input a string using this char pointer till i hit "enter", please help! 
  Thanx in advance.</p>