title: How to get array output without using pointers in this C program example?
body: <p>Here is the C code.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  
  main()
  {
      int i,n;
      char a[100];
  
      printf("Enter number of teams");
      scanf("%d",&amp;n);
  
      for(i=1;i&lt;=n;i++)
      {
          printf("\nenter team %d",i);
          scanf("%s",a);
      }
  
      for(i=1;i&lt;=n;i++)
      {
          printf("%s",a[i]);
      }
  }
  </code></pre>
  
  <p>My program is simple, but its crashing. i just want to load in a few names into array and then print them back. I am able to do that but at last line, its crashing.</p>