I really don't know how to write the function part although i tried I'm not sure if it makes sense, I'm a beginner and sometimes i can't tell where i messed up.

Suppose we declare int a[N], b[M], c[N], where N and M are predefined

global constants, somewhat we initialize a and b such that they contain two sets and assume that the values in a and b are already sorted in ascending order (so you don’t need to anything

else, but use them as is).

NOW, We are interested in finding:

a. the difference between a and b, and put the elements of a-b into c and

b. the number of elements in c.

Write a function that will take a, b, c as parameters and determine the difference set c and the number of elements in c. The function will return the number of elements in c while storing the

difference between a and b into c.

For example, if a = {2, 5, 7, 8, 13} and b = {1, 5, 7, 9, 12}, then your function

will return 3 as the number of elements in c,

and we will have c = {2, 8, 13} as a-b.

Code:int set_difference(int a[N], int b[M], int c[N]) { int i; for (i=0; i<b; i++) { if ( x[N]==c) return i; else if (x[N] > c) } return (-1); }