the code to implement a state diagram to recognize one form of the comments of the C-based programming languages, those begin with /* and end with */.
Complete the full program with no compilation error.
int getComment() {
getChar();
/* The slash state */
if (charClass != AST)
return SLASH_CODE;
else {
/* The com state-end state loop */
do {
getChar();
/* The com state loop */
while (charClass != AST)
getChar();
} while (charClass != SLASH);
return COMMENT;
}