Why it is giving no output?


even it is same.

@shivansh.sm1 in function declaration order of passing wrong int n, int idx instead of int idx,int n
corrected https://ide.codingblocks.com/s/241701
dont forget to mark the doubt as resolved if cleared :smiley:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.