Sorry i rushed when typing the questionWhat is c langauge problem
So far I maged to find the longest word out of the ten inputs from the user but I can't print the number of vowels in this word specifically. If that makes sense.Do you want us to post C Program to Check whether a Character is Vowel or Consonant OR you want us to help you with finding the word with the most vowels?!!
It is ok i managed to solve it.idk if you managed to solve this but like @where! said, post your code I'd like to learn.
I don't know C but if js and the words are in an array, 1) put vowels in dictionary, and set counter variable, 2) loop through array, 3) find longest in your data set and save on a variable or array, 4) loop through the var or array and just check if each individual letter is in the dictionary, if yes, add to counter, 5) return counter and you should be set.
Do you have to use 2d array or there is other options.last time i did c was in university, but if I remember correctly you'll need to use scanf for taking user input, store it in some array, loop through the array with a for loop and create an if statement to check element in the array for what u want and throw in a counter in there somewhere
How do you take 10 names in 1d arrayprobably an overkill for this, 1D should be ok
You've done this already tho right?How do you take 10 names in 1d array
Yh but i am trying to find another simpler way. The way I have is long and it is not efficient. I have done it with 2d array but idk how to do it for 1d array.You've done this already tho right?
post the code snippet hereYh but i am trying to find another simpler way. The way I have is long and it is not efficient. I have done it with 2d array but idk how to do it for 1d array.