Maybe you are used to Java. First of all you cannot pass an array like that in C. in C
int arr1[10];
int arr2[20];
Are two different types and
arr[]
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.