title: Working of program in Function Overloading
body: <p>I want to ask why this program does not generate a compile time error?</p>
  
  <pre><code>int Add(int x, int y){
      return (x+y);
  }
  
  double Add(double x, double y, double z){
      return (x+y);
  }
  
  int main()
  {
      cout&lt;&lt;Add(5,6);
      cout&lt;&lt;Add(5.5,6.6);
      return 0;
  }
  </code></pre>