How to access each element of array of words?
For example, if I want to find number of vowels in every word of an array.

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int i,n;
    char **array;
    do
    {
        printf("n=");scanf("%d",&n);
    }
    while(n<1);
    array=(char **)malloc(n * sizeof(char *));

Thanks for replies.

strtok would be an option.

strtok - Split string into tokens

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.