C | Functions | Question 7

Last Updated :
Discuss
Comments
Predict the output? C
#include <stdio.h>
int main()
{
    void demo();
    void (*fun)();
    fun = demo;
    (*fun)();
    fun();
    return 0;
}

void demo()
{
    printf("GeeksQuiz ");
}
GeeksQuiz
GeeksQuiz GeeksQuiz
Compiler Error
Blank Screen
Tags:
Share your thoughts in the comments