title: scanning string in c
body: <pre><code>   int main( )
      {
          char str[200];
          int n,tc;
          scanf("%d",&amp;tc);
          while(tc--)
           {
             scanf("%d",&amp;n);
             gets(str);
             puts(str);
          }
      return 34;
      }
  </code></pre>
  
  <p>Why this code  is not scanning   no. of strings(str) equals to tc?<br>
  Platform  UBUNTU 10.04</p>