Which of the following statement is correct about the following program?

1.7 Which of the following statement is correct about the following program?
#include<stdio.h>
long fun(int num)
{
int i;
long f=1;
for(i=1; i<=num; i++)
f = f * i;
return f;
}
A) The function calculates the value of 1 raised to power num
B) The function calculates the square root of an integer
C) The function calculates the factorial value of an integer
D) None of the above


Leave a Reply