IDNLearn.com: Where questions are met with accurate and insightful answers. Find the information you need quickly and easily with our reliable and thorough Q&A 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.