Home / MCQ Bank / Computer
Computer Miscellaneous On Data Structures Difficulty: Medium

What is the output of the following code? int cnt = 0; void my_recursive_function(char *s, int i) { if(s[i] == '\0') return; if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') cnt++; my_recursive_function(s,i+1); } int main() { my_recursive_function("thisisrecursion",0); printf("%d",cnt); return 0; }

Select the correct option to test your answer:

More Computer Questions

LCP array and . . . . . . . . is used to construct suffix tree. What is the significance of the Hadoop ResourceManager "Container Resizing" feature in a Hadoop cluster? What will be the output of print(math.copysign(3, -1))? Which command is used to skip the rest of a loop and carry on from the top of the loop again? An absolute . . . . . . . . contains the complete address of a file on the nternet.