Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Discover in-depth answers to your questions from a wide network of experts on our user-friendly Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

Consider the following code snippet:
public static int sum(int n)
{ if (n == 0) { return 0; } else { return n + sum(n - 1); }}
What does this code calculate?
a) The factorial of n.
b) The absolute value of n.
c) The sum of natural numbers from 1 to n.
d) The remainder when n is divided by 2.