Sail E0 Webinar
Question


Which of the following statements are correct about the function?


long fun(int num)
{
int i;
long f=1;
for(i=1; i
Options:
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 above
Answer: Option C

Yes, this function calculates and return the factorial value of an given integer num.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers