Question: Modify the above C program set_operations.c so that it includes the following functions: void set_difference(int *a, int *b, int n, int*difference); void set_complement(int *a, int


Modify the above C program set_operations.c so that it includes the following functions:
void set_difference(int *a, int *b, int n, int*difference);
void set_complement(int *a, int n, int *complement);
set_difference function: it should find the difference of the set represented by array a and set represented by array b and store the result in the set represented by array difference.
set_complement function: it should find the complement of the set represented by array a store the result in the set represented by array complement.
Both functions should use pointer arithmetic not sub-scripting to visit array elements. In other words, eliminate the loop index variables and all use of the [] operator in the function.
The program should be named set_operations2.c. It calls set_difference and set_complement functions in the main function. The main function should also display the result.
6 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
