title: C++ Passing Struct Address
body: <p>Im a little bit confused about passing structs into functions. I understand pointers and everything.</p>
  
  <p>But for instance:</p>
  
  <pre><code>struct stuff
  {
     int one
     int two 
  };
  
  int main{
      stuff fnc;
      fnc.two = 2;
      fnc.one = 1;
      multiply(&amp;fnc);
  
  }
  
  void multiply(const stuff * pm){
      cout &lt;&lt; pm-&gt;one * pm-&gt;two;
  }
  </code></pre>
  
  <p>First of all....am i even doing this right.
  And second of all, why do we use the address operator when we pass the function, but use the * pointer operator in the actual function call?
  Im confused?</p>