title: scanf_s not enough arguments passed for format string(Visual Studio)
body: <p>The program showing error as title.
  What's wrong on scanf_s function?
  Any idea? Thanks in advance.</p>
  
  <pre><code>int main()
      {
          struct Students
          {
              char name[10];
              int  snum;
              float  point;
          }st[5];
  
  int i;
  for(i=0;i&lt;5;i++)
  {
      printf("-- Student Info --\n-");
  
      printf("Enter Your Name: ");
      scanf_s("%s",st[i].name);
  
      printf("\nEnter Your Number: ");
      scanf_s("%d",&amp;st[i].snum);
  }
  
  return 0;
  }
  </code></pre>