Back To C++ Single Dimensional Arrays Index
//program to input a sentence and count number of words in it using for loop #include
#include
#include
#include
void main() { char str[100]; int count=0; int l,i; clrscr(); cout<<"\nenter a string : "; gets(str); l=strlen(str); cout<<"\nstring you have entered is : "<