Token in C

RS TECH
2 min readJan 6, 2020

--

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.

C Tokens https://www.tech-updates.in/

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:

  1. Primitive data types
  2. Derived data types
  3. User-defined data types

There are five primary fundamental data types,

  1. int for integer data
  2. char for character data
  3. float for floating point numbers
  4. double for double precision floating point numbers
  5. 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.

--

--

RS TECH
0 Followers

WE are web tech developers and content providers related to technology we develop websites mobile+windows applications. and also provides digital market service