057. Technical interview question: Give the output of following code

int i;
int fun();
int main()
{
    while(i)
    {
        fun();
        main();
    }
    printf("Hello\n");
    return 0;
}
int fun()
{
    printf("Hi");
}
Watch video explanation for this technical question

Leave a Reply

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