1.

State the difference between token and identifier

Answer»

A token is the smallest individual unit in a program. E.g. : keyword, identifiers, literals etc. whereas an identifier is the name given to different parts of a program. 

E.g. : variable, functions, classes etc.



Discussion

No Comment Found

Related InterviewSolutions