title: Reading string from input with space character?
body: <p>I'm using Ubuntu and I'm also using Geany and CodeBlock as my IDE.
  What I'm trying to do is reading a string (like <code>"Barack Obama"</code>) and put it in a variable:</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      char name[100];
  
      printf("Enter your name: ");
      scanf("%s", name);
      printf("Your Name is: %s", name);
  
      return 0;
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre class="lang-none prettyprint-override"><code>Enter your name: Barack Obama
  Your Name is: Barack
  </code></pre>
  
  <p>How can I make the program read the whole name?</p>