Here source.c file contain the source program. And this program only count the printf and scanf. You can add more token in the line where char *word[] = {"printf", "scanf"};.

Tokens.c: Run this code

 


Input file as source.c: Stay this file with Token.c