I am trying to write a program that has to create a structure that has one variable called value and one pointer to the list(making it a linked list). It need to prompt the user for 5 values and store them into the linked list, then print out the list. I need to then ask again for one more value and display the new list. I understand the concept of the linked list, but writing it in the language is a bit confusing. So far this is what I have got. its not much, but from some of the tutorials and other posts, I can seem to make the program work. any thoughts?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
define MAXCHARS 5
struct NUMBERS
{
char name[MAXCHARS];
struct NUMBERS *value;
};
int main()
{
printf("Enter five numbers, one per line.\n");