|
代码:
test.c
#include<stdio.h>
int main( )
{int a=4,b=8,c;
c=max(a,b);
printf("max=%d",c);}
int max(int x,int y)
{int z;
if(y>x)
z=y;
else z=x;
return(z);
}
编译:[root@localhost root]# cd program
[root@localhost program]# gcc -o test test.c
[root@localhost program]# ./test
[root@localhost program]# ./test
[root@localhost program]# ls
好像没东西输出! |
|