title: Can a C function have multiple signatures?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/479207/function-overloading-in-c">function overloading in C</a>  </p>
  </blockquote>
  
  
  
  <p>Apologies if this is a dup but if it is, I can't find it.</p>
  
  <p>In C, can you define multiple functions with the same function name, but with different parameters?  I come from a C# background.  In C#, the following code is completely legal.</p>
  
  <p>//Our first function</p>
  
  <pre><code>int MyFunction()
  {
      //Code here
      return i;
  }
  
  int MyFunction(int passAParameter)
  {
      // Code using passAParameter
      return i;
  }
  </code></pre>
  
  <p>In my specific case, I would like to create a function that has one optional parameter (that is an int) at the end of the parameter list.  Can this be done?</p>