Tokens
A token is a group of characters that logically belong together. They are like building blocks of a Programming Language.The programmer can write a program by using tokens. C++ uses the following types of tokens. 1. Keywords These are some reserved words in C++ which have predefined meaning to compiler called keywords. It is discussed in previous section. 2. Identifiers Symbolic names(a sequence of alphabets,digits &/or underscores) can be used in C++ for various data items used by a programmer in his program. There are several rules for the formation of an identifier: An identifier can consist of alphabets, digits and/or underscores. It must not start with a digit C++ is case sensitive that is upper case and lower case letters are considered different from each other. It should not be a reserved word. 3. Literals(Constants) Data items that never change their value during the execution of the program.You w...
progeeks2.blogspot.com
ReplyDelete