Assignment 2
Submission Date: 15-12-25 (Monday)
Submission Date: 15-12-25 (Monday)
1. Write a function Union() to combine two integer arrays. The function should take 3 arrays as arguments and do not return any value.
2. Define a function SearchN() that returns the number of times an element occurs in an array. The function should take an array and key as parameters.
3. Define a structure List with the following elements:
elements
size
Store a list of numbers in a variable of this structure type.
Define the following functions on the list:
Search() - Finds a given key and returns the index of the key
Sort() - Sorts the elements
Combine() - Combines two lists and returns the result as a structure element