title: why i am getting error in the below C++ code : error: expression list treated as compound expression in initializer [-fpermissive]
body: <p>when i am running below the code i am getting error but the same code run without making the function larger() code runs well. The code main purpose is to find largest of four number.</p>
  <p>`code:</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main(){
      int a,b,c,d,z,;
      int larger(a,b,c,d){
      return  a * (a &gt;= b) * (a &gt;= c) * (a &gt;= d) + 
              b * (b &gt;  a) * (b &gt;= c) * (b &gt;= d) + 
              c * (c &gt;  a) * (c &gt;  b) * (c &gt;= d) + 
              d * (d &gt;  a) * (d &gt;  b) * (d &gt;  c) ; 
  
      }
  
      z = larger(2,10,12,5);
      cout&lt;&lt;z;``
  
  
      return 0;
  }
  </code></pre>