// Function to use linked Lists

#include <stdio.h>

int main (void)
{
     typedef struct  entry
     {
          int           value;
          struct entry  *next;
     }Entry;

     Entry n1, n2, n3;//creates the nodes for the list
     int          i;

     //give the value element a value
     n1.value = 100;
     n2.value = 200;
     n3.value = 300;

     //this creates the list with links
     n1.next = &n2;
     n2.next = &n3;

     /*get me the value member pointed to by n1's and print it
       Where is n1.next pointing???  What would happen if I did 
       the following i = n1.next.value*/
     i = n1.next->value;
     printf ("%i  ", i);

     //get n2's value and print it
     printf ("%i\n", n2.next->value);

     return 0;
}
