title: Function Overloading with structures as arguments to the function
body: <p>Can i use function overloading with structures as arguments? If yes, how can i implement it? Will this way work?</p>
  
  <pre><code>void function1(struct_a *a, struct_b *b, int i)
  {
      cout &lt;&lt; "abc";
  }
  
  void function1(struct_c *c, struct_d *d)
  {
      cout &lt;&lt; "def";
  }
  
  int main()
  {
      struct_a *a = (struct_a *)&lt;some-data-a&gt;;
      struct_b *b = (struct_b *)&lt;some-data-b&gt;;
      struct_c *c = (struct_c *)&lt;some-data-c&gt;;
      struct_d *d = (struct_d *)&lt;some-data-d&gt;;
  
      function1(a, b, 1);
      return 0;
  }
  </code></pre>