这段c语言为什么报错
#include<stdio.h>void xk3(int* a,int* b);
void xk4(int a,int b);
void main()
{
int x=5,y=10;
printf("x=%d,y=%d\n",x,y);
xk3(&x,&y);
printf("x=%d,y=%d\n"x,y);
xk4(x,y);
printf("x=%d,y=%d\n"x,y):
}
void xk3(int* a,int* b)
{
int c=*a;*a=*b;*b=c;
}
void xk4(int a,int b)
{
int c=a;a=b;b=c;
}
报错:
--------------------Configuration: Func1 - Win32 Debug--------------------
Compiling...
Func1.c
C:\Documents and Settings\Administrator\Func1.c(9) : error C2146: syntax error : missing ')' before identifier 'x'
C:\Documents and Settings\Administrator\Func1.c(9) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\Func1.c(11) : error C2146: syntax error : missing ')' before identifier 'x'
C:\Documents and Settings\Administrator\Func1.c(11) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\Func1.c(15) : error C2065: 'a' : undeclared identifier
C:\Documents and Settings\Administrator\Func1.c(15) : error C2100: illegal indirection
C:\Documents and Settings\Administrator\Func1.c(15) : error C2065: 'b' : undeclared identifier
C:\Documents and Settings\Administrator\Func1.c(15) : error C2100: illegal indirection
C:\Documents and Settings\Administrator\Func1.c(15) : error C2100: illegal indirection
C:\Documents and Settings\Administrator\Func1.c(15) : error C2065: 'c' : undeclared identifier
执行 cl.exe 时出错.
Func1.obj - 1 error(s), 0 warning(s)
请高手给分析分析