Some questions on function arguments

What is wrong with each of the following function declarations?
  1. int add2(int val1, val2)
    {
       return val1 + val2;
    }
    
    Both arguments need a type specifier, even though they are bot int.

  2. float mul2(float v1; float v2)
    {
       return v1 * v2;
    }
    
    Arguments in the list are separated by commas, not semi-colons.

Back to the questions.


Back to notes on function arguments.