I am getting garbage value in the output,what am i doing wrong?
All Indices Challenge Problem
@shreyajain hey sherya you are not running loop at the time of output so when you try to output the result the array give it base address and it this method is not so good. instead do like linear search.like whenever you find any indices of a given element print the index of that element rather than storing it value in the array.
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.