Question: The solution must be in c programming language. Array Utilities (array-utils.c) In this exercise you will write several functions that operate on arrays. The individual



The solution must be in c programming language.
Array Utilities (array-utils.c) In this exercise you will write several functions that operate on arrays. The individual functions are detailed below (a) The dot product of two arrays are a = [al, a2Ag, ..,an] and b = [bi, b2,b, ..,bn] is Write a function that computes the dot product of the two arrays. int dotProduct (const int *a, int size, const int b, int size2); b) Write a function that takes an integer array and returns the number of integers that are prime in the array int numPrime (const int *a, int size); (c) Write the following function void arrayDifference (const int *a, const int *b, int sizeOfA, int sizeOfB) This function dynamically creates an array and fills it with all integers that can be found in a, but not in b. The values in the returned array should be unique; that is, there should not be any duplicates. Furthermore, the size of the allocated arrays should not waste memory (d) Write the following function. void arrayIntersect (const int *a, const int *b, int sizeOfA, int sizeOfB)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
