title: how to use a pointer inside struct in C
body: <p>I have a two struct, one is linked list. </p>
  
  <pre><code>typedef struct Mark{
         int  people;
         Node *nodeyy;
  }Mark
  
  typedef struct Node{
         struct node next;
         int value;
  }Node
  </code></pre>
  
  <p>if i allocated memory for a node, let say  </p>
  
  <pre><code> Node *node1=malloc( sizeof(struct Node));
  </code></pre>
  
  <p>And I also allocated memory for a bookmark, let say </p>
  
  <pre><code> Mark *mark1=malloc( sizeof(struct Mark));
  </code></pre>
  
  <p>I want to make the pointer nodeyy in the mark1 points to the same thing as node1, how can i do that?</p>
  
  <p>I think that </p>
  
  <pre><code> mark1-&gt;nodeyy=node1;
  </code></pre>
  
  <p>is definitely wrong.</p>