title: Lex Program to check for comment lines
body: <p>Could anyone please help me in writing a LEX program to check and count comment lines in a C program. I have searched for it everywhere and failed to get the complete code.</p>