void my prog (int x)

{

    if (x>0) {

        my prog (x-2);

        print f (“%d”,x);

        myprog (x-1);

    }

}

What is the output if we call the above function as myprog(5)?

1
1 3 2 1 5 1 3 2 1
2
1 3 2 1 1 4 1 3 2 1 
3
1 3 2 1 5 2 1 4 1 3 2 1
4
3 2 1 5 2 1 4 1 3 2 1

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation