C Programming


1) Which of the following statements are correct about the function?

long fun(int num)
{
    int i;
    long f=1;
    for(i=1; i<=num; i++)
        f = f * i;
    return f;
}
  • A)

  • B)

  • C)

  • D)

Show Answer:
Show Answer