kaldin

  • Login

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)

Next
Show Answer:
Show Answer


More Question
How many times the program will print FutureC #includestdio.hint main() printf(FutureC); main(); return 0;
va_list is an array that holds information needed by va_arg and va_end.
What is the notation for following functions 1. int f(int a, float b) / Some code /
Point out the error in the following program. #includestdio.h#includestdarg.hvoid varfun(int n, ...);int main() varfun(3, 7, -11.2, 0.66); return 0;void varfun(int n, ...) float ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(d, num);
Point out the error in the following program. #includestdio.hint main() struct emp char name[20]; float sal; ; struct emp e[10]; int i; for(i=0; i=9; i++) scanf(s f, e[i].name, &e[i].sal); return 0;