can someone guide me how to have a C pgm to count the number of commented lines?
Sounds like a homework problem to me. Are you having a specific problem or are you just looking for someone to do the work for you.
Would that include inline comments also or whole line comments only
Go search gcc's source code eheh