Token in C|what is Token in C language|all about Tokens|Types of Tokens
Token in C is the smallest unit of a program that can be understand and divided by its categories by compiler.
when we compile the program several phases occur called tokens? all the alphabets of our programming language are called tokens.tokens can be classified in the following types:-
Token in C are:
1) Keywords
2) Identifiers
3) Constant
4) Strings
TO know more about tokens Click on Link Below :
Data types
‘C’ provides various data types to make it easy for a programmer to select a suitable data type as per the requirements of an application. Following are the three data types:
- Primitive data types
- Derived data types
- User-defined data types
There are five primary fundamental data types,
- int for integer data
- char for character data
- float for floating point numbers
- double for double precision floating point numbers
- void
Array, functions, pointers, structures are derived data types. ‘C’ language provides more extended versions of the above mentioned primary data types. Each data type differs from one another in size and range. Following table displays the size and range of each data type.
Integer data type
Integer is nothing but a whole number. The range for an integer data type varies from machine to machine. The standard range for an integer data type is -32768 to 32767.
An integer typically is of 2 bytes which means it consumes a total of 16 bits in memory. A single integer value takes 2 bytes of memory. An integer data type is further divided into other data types such as short int, int, and long int.