C tokens
C Token (Definition):
The smallest individual unit of a program is known as a token.
C has the following tokens:
Note: If a student had written any 3 of the following then the answer is correct.
- Keywords:
- Identifiers:
- Constants:
- Strings:
- Special Symbols:
- Operators:
C reserves a set of 32 words for its own use. These words are called keywords (or reserved words), and each of these keywords has a special meaning within the C language.
Identifiers are names that are given to various user-defined program elements, such as variables, functions, and arrays.
Constants refer to fixed values that do not change during the execution of the program.
A string is a sequence of characters terminated with a null character \0.
Symbols such as #, &, =, * are used in C for some specific function are called special symbols.
An operator is a symbol that tells the compiler to perform a certain mathematical or logical operation.
Drafted on 🌏 by,
Jal
☮
peace
Comments
Post a Comment