怎么在被调函数中用指针对主函数中的数组进行赋值_百度知道
最佳答案: #include <stdio.h> void f(char *p, int n) { for(int i=0; i<n; i++) { *p = i; } } void main() { char a[10]; f(a, 10...更多关于我用指针对数组赋值的操作哪里错了?的问题>>
用指针给数组元素赋值,并输出数组_百度知道
最佳答案: #include<stdio.h> #define M 10 void main() { void input(int *,int); //声明函数 void output(int *,int); int a[M]; printf("please ...更多关于我用指针对数组赋值的操作哪里错了?的问题>>