int vowelcount (char[],int,int) // Lacking names for the variables
{
int vow_cnt=0;
for(int i=0;i<strlen[];i++) // strlen should be an int, making strlen[] an invalid operation
{
if(name[i] == 'a' || name[i] == 'e'||name[i] == 'i'||name[i] == 'o'||name[i] == 'u')
{
vow_cnt++;
return vow+cnt;
}
// } missing bracket
// } missing bracket
You're lacking a large number of brackets.
The variables are lacking names, most likely char[] name and int strlen (the last int does not seem to be used.
strlen should be an int.
you're returning vow+cnt which is undefined, you mean vow_cnt.
Finally you're returning inside the for loop instead of at the end, meaning it'll return once it's found the first vowel.