title: C scanf with spaces problem
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1247989/how-do-you-allow-spaces-to-be-entered-using-scanf">How do you allow spaces to be entered using scanf?</a>  </p>
  </blockquote>
  
  
  
  <p>printf("please key in book title\n"); 
      scanf("%s",bookname);</p>
  
  <p>i inside the data like this :-
  C Programming</p>
  
  <p>but why output the data like this :-
  C</p>
  
  <p>lose the Programming (strings) ?</p>
  
  <p>why</p>
  
  <p>thanks.</p>