麻烦看一下程序哪里出错了
#include<stdio.h>int mul(int a,int b);
main()
{
int a,b,c;
a=5;
b=10;
c=mul(a,b);
printf("multiplication of %d and %d is %d",a,b,c);
}
int mul(int x,int y)
int p;
{
p=x*y;
return(p);
}/*十月九号.C
E:\Microsoft Visual Studio\MyProjects\十月九号\十月九号.C(12) : error C2085: 'p' : not in formal parameter list
E:\Microsoft Visual Studio\MyProjects\十月九号\十月九号.C(14) : error C2065: 'p' : undeclared identifier
执行 cl.exe 时出错.*/