/* Problem 1 (required 50 points) Write a function int nonZero(int A[], int size) that counts the number of non-zero elements of the array A. Write a program to test your function on random array of integers, each integer in range -2 to 2 and size in range 5 to 20.*/ #include #include #include #define SIZE 20 int nonZero(int A[], int size); //prototype int main(){ srand(time(NULL)); int size=5+rand()%(20-5+1), i, A[SIZE]; printf("random array\n"); for(i=0;i