title: type definition in parameter list
body: <pre><code>int func(struct x{int a;}y);
  int main()
  {
  
  }
  </code></pre>
  
  <p>The above code gives following error in c++<br>
  error: types may not be defined in parameter types<br>
  while its run fine in c with  warning,means in c type may be define in parameter list<br>
  thus the following code should give redefination error in c</p>
  
  <pre><code>int func(int a,int a);
  int main()
  {
  
  }
  </code></pre>
  
  <p>Doubt:why the above code giving error in c++<br>
  error:Multiple parameter named a</p>