Write a C main function to accomplish the following tasks and name the source code:

a) Sorting integers in descending order
b) Calculating factorial of a number
c) Implementing a stack using arrays
d) Finding the largest element in an array