Problem E: 指针:调用自定义函数input、output完成对n个元素的数组进行输入输出。
Description
自定义函数input(int a[], int n),output(int a[], int n),在main函数中调用它们,完成对数组n个元素的输入输出。
Input
多组测试数据,每组先输入整数n,再接着输出n个整数,n<100。
Output
输出数组的每个元素,数据间空格隔开。
Sample Input
3
1 2 3
6
4 5 6 7 8 9
Sample Output
1 2 3
4 5 6 7 8 9
#include<stdio.h>
int main(){
int a[10],n;
void input(int