title: Reading a paragraph in c language
body: <pre><code>#include&lt;Stdio.h&gt;
  #include&lt;conio.h&gt;
  void main()
  {
      char a[100];
      clrscr();
      printf("enter a paragraph\n");
      scanf("%s",a);
      printf("%s",a);
      getch();
  }
  </code></pre>
  
  <p>output:
  enter a paragraph
  my name is vasanth
  my</p>
  
  <p>how do I read the entire line "my name is vasanth" using scanf function?</p>