How do i convert the following code into a function? What parameters would be in the function?
printingform(?? ?,???)
printingform(?? ?,???)
Code:
#include <stdio.h>
#include <string.h>
int main()
{
int i;
//int j;
int n;
printf("Enter length and the list");
scanf("%d", &n);
int number[22];
printf("It is :[");
for (i=0;i<n;i++){
scanf("%d", &number[i]);
printf("%d\t",number[i]);
}
printf("]");
printf("\n");
}
Comment