can any body here knows how to create a program that will count the vowels and constants for example:

the quick
vowels:3
constants:5

can any one help me or can any one have idea on doing that using
#include <string.h>

Maintain two counters and iterate the string one character a time. Use one if condition to check if the character is a vowel or a consonant and increment the respective counter.

but how i can make it that what is the code of that should i use...

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.