title: Passing two different structs into same function
body: <p>I have 2 different sized structs and I would like to have one function in which I can pass them into.  However, I do not know how to define the parameter of the function to accept 2 different structs.</p>
  
  <p>My structs are below</p>
  
  <pre><code>struct {
      int a;             // 2 byte
      int b;             // 2 byte
      int c;             // 2 byte
      int d;             // 2 byte
  }  person1;                // 8 bytes
  
  
  struct {
      int a;            // 2 byte
      DeviceAddress b;  // 8 bytes
      int c             // 2 bytes
      float d;      // 4 bytes
  }  person2;               // 16 bytes
  
  function print_struct(struct&amp; ?????)
  {
       actions here....
  }
  
  
  print_struct(person1);
  print_struct(person2);
  </code></pre>