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
void main() { char str[100]; int count=0; int l,i; clrscr(); printf("\nenter a string : "); gets(str); l=strlen(str); printf("\nstring you have entered is : %s",str); for(i=0;i