0
Is there any inbuilt function to find index of an element of an array in C?
2 Respuestas
+ 2
As far as I know there isn't.
In c++ there is the std::find function.
+ 2
I would say using functions from standard libraries is good practice. You don't have to reinvent the wheel all the time, besides it results in shorter code (readability) and they are well optimized.