title: C linked lists allocating memory
body: <pre><code>struct Node
  {
   int val;
   struct Node *next;
  };
  struct List
  {
   struct Node *head;
   struct Node *tail;
   int size;
  };
  typedef struct List *List;
  </code></pre>
  <p>I have this Linked List created, when i try to allocate memory for the head program crashes</p>
  <pre><code>List Test;
  Test-&gt;head = (struct Node *) malloc(sizeof(struct Node));
  </code></pre>