title: Link list program to Display Student marks
body: <pre><code> #include&lt;stdio.h&gt;
  
   #include&lt;conio.h&gt;
  
   #include&lt;stdlib.h&gt;
  
   void Insert();
   void DisplayList();
   struct Student
   {
   char Name[10];
   int Marks;
   struct Student *Next;
   } *Start;
   int main()
   {
   Start = NULL;
   int Choise;
   while (1)
   {
   printf("enter number to choose ");
   scanf_s("%d", &amp;Choise);
   switch (Choise)
   {
   case 1:
      Insert();
      break;
      case 3:
          DisplayList();
          break;
      default:
      printf("Incorrect assignment Press relevant key :");
      }
      }
      }
      void Insert()
      {
      struct Student *Temp, *current=NULL;
      Temp = (struct Student *) malloc(sizeof(struct Student));
      printf("Enter Name Of Student");
      scanf_s("%s",&amp;Temp-&gt;Name);
      printf("Enter Marks Of Student");
      scanf_s("%d", &amp;Temp-&gt;Marks);
      Temp-&gt;Next = NULL;
      if (Start == NULL)
      {
          Start = Temp;
          Temp-&gt;Next = NULL;
      }
       else
          current = Start;
          while (current-&gt;Next != NULL)
          {
          current = current-&gt;Next;
          current-&gt;Next = Temp;
          }
      }
    void DisplayList()
     {
      struct Student *current, *Temp;
      current = Start-&gt;Next;
      if (Start == NULL)
      {
          printf("No Element in the list");
      }
      else
      {
          for (current = Start; current != NULL; current = current-&gt;Next)
          {
              printf("The List are\n");
              printf_s("%d",current-&gt;Marks);
          }
  
      }
  </code></pre>
  
  <p>this is a Program written for single linked list.when i display the list it give only one element in the list. Whenever i am trying to print the elements of the linked list,  it gives the output only one element
  what mistake i do please help?</p>