title: Value in C is returning null, not sure why
body: <p>Why is the print statement is returning null?</p>
  
  <pre><code>#include &lt;stdio.h&gt;&gt;
  #include &lt;stdlib.h&gt;
  
  struct Node
  {
      char abbreviation;
      double number;
      struct Node *next;
  };
  
  void insert(char abbreviation, double number, struct Node *head) {
      struct Node *current = head;
      while(current-&gt;next != NULL)
      {
          current = current-&gt;next;
      }
  
      struct Node *ptr = (struct Node*)malloc(sizeof(struct Node));
      ptr-&gt;abbreviation = abbreviation;
      ptr-&gt;number = number;
      current-&gt;next = ptr;
  
      return;
  }
  
  int main(int argc, char* argv[]) {
      struct Node *head = (struct Node*)malloc(sizeof(struct Node));
      insert('n',456,head);
      printf("%s\n", head-&gt;abbreviation);
  }
  </code></pre>