标签:printf stdio.h style for void ret 作业 pre include
#include<stdio.h> void sum(int *p,int n) { int a[10]; int sum=0; int i; for (i=0;i<n;++i) { sum+=*p+a[i]; } } int main() { sum; printf("%d",sum); return 0; }
sum 中加return sum不知道为什么会报错
标签:printf stdio.h style for void ret 作业 pre include
原文地址:http://www.cnblogs.com/hy291106/p/6146979.html