c语言中函数能返回一个数组吗

如题所述

数组不可以直接返回,只能通过参数传递出来,比如:

void fun(int* p);
int main()
{
int a[100];
fun(a);
return 0;
}
希望能帮助你。
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜