At Westonci.ca, we connect you with the answers you need, thanks to our active and informed community. Join our Q&A platform to get precise answers from experts in diverse fields and enhance your understanding. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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.