Tag Archives: blank spaces

Program to count the number of lines, number of words, number of blank spaces and number of character in a file


Sample Input\Output:[united@localhost ~]$ vi lexpart.l [united@localhost ~]$ lex lexpart.l [united@localhost ~]$ gcc lex.yy.c [united@localhost ~]$ vi file.c [united@localhost ~]$ ./a.out file.c no of lines are 3 no of words are 9 no of blanks are 8 no of character  are … Continue reading

Posted in C, Compiler Design | Tagged , , , , , , , | 2 Comments