What is the output of the following code?
int cnt = 0;
void my_recursive_function(char *s, int i)
{
if(s[j] == ')
return;
if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == '0' || s[i] == 'u')
cnt++;
my_recursive_function(s,i+1);
}
int main()
{
my_recursive_function("thisisrecursion",0);
printf("%d",cnt);
return 0;
Answers
Answered by
4
Answer:
Explanation: The function counts the number of vowels in a string. In this case the number is vowels is 6.
hope it helps you mate
please mark my answer brainliest
stay home stay safe
Answered by
1
The function counts the number of vowels in a string. In this case the number is vowels is 6.
Similar questions