C++ program to find the number of characters & words

main ()
{
int string [50] = "This is an test for a bxy ";
char c;
int flag = 0,flag_w = 0;
int i=0; count_c = 0
int count_w = 0;
c = string [i];
while (c!='\0')
{
count c++;
if (c =='')&&(flag_w == 1)
{
flag = 1;
count w++;
}
}
}

It's very calm over here, why not leave a comment?

Leave a Reply

You must be logged in to post a comment.