function to print array in c code example
Example 1: print an array in c
int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
int i;
for (i = 0; i < 10; i++) {
printf("%d ", array[i]);
}
Example 2: take array as input in c
int size=5;
int array[size]; // array of size=5;
for(i=0;i<size;i++){
scanf("%d",&array[i]);
}