A1
A1
SE22UCSE246
#include <stdio.h>
#include <ctype.h>
#include <string.h>
// List of C keywords
};
if (strcmp(token, keywords[i]) == 0) {
return 1;
return 0;
int i = 0;
if (!isdigit(token[i])) {
return 0;
return 1;
return 0;
return 0;
return 1;
return 0;
"+", "-", "*", "/", "%", "++", "--", "=", "+=", "-=", "==",
"!=", ">", "<", ">=", "<=", "&&", "||", "!", "&", "|", "^", "~", "<<", ">>"
};
if (strcmp(token, operators[i]) == 0) {
return 1;
return 0;
int main() {
char token[100];
scanf("%s", token);
if (isKeyword(token)) {
} else if (isConstant(token)) {
} else if (isIdentifier(token)) {
} else if (isOperator(token)) {
} else {
return 0;