11智能在线
新记
在c语言中主函数如何调用子函数
如题所述
举报该文章
相关建议 2011-11-29
#include <stdio.h>
#include <stdlib.h>
int test1(int a)
{
printf("a=%d\n",a);
return 0
}
int main()
{
int a=1;
test1(a); /*这样调用即可,使用函数名再加上参数就OK*/
return 0;
}
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/8s777m2qm.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
在c语言中主函数如何调用子函数?
c语言编写中,两个文件中,主函数如何调用子函数
C语言中的子函数和主函数有什么联系啊?它们是怎么编写的?
c语言中的函数中值得调用。怎么在主函数中调用子函数的值
c语言中main函数中的函数怎么调用函数?
c语言里 子函数如何调用主函数数组 ,如下面这个如何修改
C语言中程序是怎么执行的?不是执行主函数里的吗?如果主函数不...
C语言如何调用函数