Program To Accept Line Of Text Into An Character Array And Display No.Of Words
/* Program To Accept Line Of Text Into An Character Array And Display No.Of Words */ #include
#include
void main() { char a[10],ch; int i=0,j,sz,c; clrscr(); printf("\n enter line of text\n"); while( (ch=getchar())!=EOF ) { a[i]=ch; i++; if( i==10 ) break; } sz=i; for( i=0;i
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/