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

void fun(int);
int main()
{
        int a = 3;
        fun(a);
        return 0;
}
void fun(int n)
{               
        if (n > 0)
        {
                fun(--n);
                printf("%d ", n);
            }
}
Watch all videos like this

Leave a Reply

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