#include

void function(int num)

{

            if(num>0)

     {

           function(--num);

           printf("%d",num);

           function(--num);

     }

}

int main()

{

       function(3);

       return 0;

}

Output of the above function is:

1
0120
2
0123
3
1023
4
3210

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation