C | Functions | Question 5

Last Updated :
Discuss
Comments
Output? C
#include <stdio.h>

int main()
{
    int (*ptr)(int ) = fun;
    (*ptr)(3);
    return 0;
}

int fun(int n)
{
  for(;n > 0; n--)
    printf("GeeksQuiz ");
  return 0;
}
GeeksQuiz GeeksQuiz GeeksQuiz
GeeksQuiz GeeksQuiz
Compiler Error
Runtime Error
Tags:
Share your thoughts in the comments