1.a Recognation of Comments #include #include void main() { char s[25]; int i=0; int state=1; scanf("%s",s); clrscr(); while(state>=1 && statetoken;ptr++)…