title: making two struct pointers equal
body: <p>So let's say i have a struct pointer called A and struct pointer called B:</p>
  
  <pre><code>struct example{
  //variables and pointers
  }*A 
  </code></pre>
  
  <p>and then i have a pointer of datatype struct example:</p>
  
  <pre><code>struct example *B=malloc(sizeof(struct example));
  </code></pre>
  
  <p>If i do</p>
  
  <pre><code>A=B;
  </code></pre>
  
  <p>does this arithmetic operation mean that whatever struct pointer B is pointing to will be what struct pointer A is also pointing to? I get it with primitive datatype and pointers but struct confuse me because they have variables inside..</p>
  
  <p>assume struct pointer A is set and everything</p>