https://ide.codingblocks.com/s/69711
can you please tell me why there is on output in my code
All indices problem no output coming
@Dhruv-Miglani-2090236747707980 hey dhruv I have corrected your code you can refer this link for you code.
in my code i just did not include n as the parameter and rest the same but output was not coming while n was not used in my code .Can you tell me why??
@Dhruv-Miglani-2090236747707980 hey dhruv
1 use void in this case if you use int return type the code will stop after first capturing of indices
2 you have to provide a range upto you have to go you just increasing i but you didn’t specify where to stop
okay thank you very much
Hey Dhruv,
If your doubt is resolved please mark it as resolved in your course’s “ Ask Doubt ” section.
Hi i just had a doubt that the problem says
Take as input N, the size of array. Take N more inputs and store that in an array. Take as input M, a number. Write a recursive function which returns an array containing indices of all items in the array which have value equal to M. Print all the values in the returned array.
here in your code we are not returning array.So is it possible to return an array.