Programming Assignment

Pointers

Write the following function:

void find_two_largest(int a[], int n, int *largest, int *second_largest);

When passed an array a of length n, the function will search a for its largest and second largest elements, storing them in the variables pointed to by largest and second_largest, respectively.

Your main function should create an array, call the function find_two_largest(), and print out the two variables largest and second_largest. 

You will need to hand in the program, input, and output.