title: Accessing structure elements via double pointers in C
body: <p>I'm implementing linked lists using structures. I have a structure -</p>
  
  <pre><code>typedef struct llist node;
  typedef node *nodeptr;
  struct llist
  {
      int data;
      nodeptr next;
  };
  </code></pre>
  
  <p>Now lets say I declare a variable <code>nodeptr *ptr;</code>. How do I access the members <code>data</code> and <code>next</code> using <code>ptr</code>?</p>