Maybe you are used to Java. First of all you cannot pass an array like that in C. in C
Are two different types and
is no type at all that is why your code does not compile.
Here is an example of how you can pass an array: Passing array to function in C programming with example
Then you can start with
getLargest(int size, int *arr)
I suggest you avoid sorting
, costs a lot of CPU.
Without sorting you can implement
getSecondLargest(int size, int largest, int *arr)
with a bit of thinking
And you might want pretty code and be consistent. Not one function with upper-case and one with lower-case.