title: How can i print empty spaces from a string?
body: <pre><code>     #include &lt;stdio.h&gt;
  
      int main(){
             char phrase [100]={0};
             printf("Write a sentence: \n");
             scanf ("%s", phrase);
             printf("%s\n", phrase);
        }
  </code></pre>
  
  <p>The purpose of this program is to print a sentence from the user. The problem is that there is something wrong with the ' ' character and i dont know how to solve it.</p>
  
  <p>During the execution, the sentence is only printed  until the first empty space, for some reason. but why?</p>