a) Implement a function that uses recursion to print odd-ind…
a) Implement a function that uses recursion to print odd-indexed elements from a given vector. Usethe following function template. [10 pts]#include #include void printodd(const std::vector& arr, int index = 0){//to do…}b) What is the time complexity of this approach? Explain [5 pts]
Read Details