What are C tokens ?

1.3 What is a token?
In our world when someone says token we think of an object that represents something else for example
It may the receipt was given by the shopkeeper to you. But in c programming, it is the smallest unit or text which cannot be divided into a smaller unit.
C token are divided as



Let see them one by one
Keywords
We can say them reserved words because they have some special meaning in c compiler. These words cannot be used as an identifier. C language uses the following keywords:
Auto
Double
Int
Struct
Break
Else
long
Switch
Case
Enum
register
Typedef
Char
Extern
return
Union
Etc. we will see them afterward.
Identifier
These are the name you use for a variable, functions in your program. You can begin naming a character or an underscore followed by any character or number.  Uppercase and lowercase letters are not equivalent in C, so the two identifiers r1 and R1 do not describe the same object.
Operator
An operator is used to describe an operation applied to one or several Object.
For example
>,>=,<=,+,-,*
Special
These are the Punctuators use in c having a special meaning . some of them #, ; , : ( ), { }, [ ].
Constants
C constants are also like a normal variable but the only difference is, their values can not be modified by the program once they are defined.
String
String constants are sequence of characters enclosed in double quotes for example
“Hello”, “abc”,”hello123”

Every string constant is automatically ending with a special character called the null character (/0).
we will dig more into this topic when we write the programs

Comments

  1. Best Casinos Near Ya'allama - Oklahomacasinoguru
    Ya'allama Casino Resort 스포츠분석 in หารายได้เสริม Ya'allama is one of the biggest, most luxurious, 원피스 바카라 to the entertainment, restaurants, 오피주소 shopping, bars and lounges of the 셉인소 Ya'allama.

    ReplyDelete

Post a Comment

Popular posts from this blog

Basic input, output and variables

Data Types in C

Variable