title: Why result1 and result2 have same value instead the <int> was missing from result2 line?
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  template &lt;typename T&gt;
  T add(T num1, T num2) {
      return (num1 + num2);
  }
  
  int main() {
      int result1;
      int result2;
      // calling with int parameters
      result1 = add&lt;int&gt;(2, 3);
      cout &lt;&lt; &quot;2 + 3 = &quot; &lt;&lt; result1 &lt;&lt; endl;
       
  
      result2 = add(2,3);
      cout &lt;&lt; &quot;2 + 3 = &quot;&lt;&lt; result2&lt;&lt;endl;
  
      return 0;
  }
  </code></pre>
  <p><strong>The <code>&lt;int&gt;</code> is missing but the code runs without any error</strong>
  Why so?
  Is it necessary to add the  part?</p>