A data type for a variable determines what kind of data can be
stored in the variable and how much amount of memory that should be allocated
to the variable data types can be categorized in to 3 types.`
1.
Basic data type
2.
Derived data type
3.
User defined data type basic
Basic Data Types:
The data types which are defined
already such data types are called predefined data types .it is also called as
Fundamental Data types or Basic Types.
Generally they are categorized into
four Types
1.
Integer
2.
Float
3.
Double
4.
Character
Derived Data Types:
The data types which are
constructed from the Fundamental Types is Called Derived Types.
And these are also called as Secondary data types. These are as
follows.
Array:
Array is a
collection of similar (Homogeneous) data elements which are stored in sequential
memory locations’ and all are referred by a common name.
Strings: Collection of
characters enclosed in double quote (““) and ended with null character (‘\0’)
Pointer: pointer is a
variable which holds the address
of another variable i.e. it refers another memory location
Note: The derived
data types may be used for representing a single value or multiple values
User Defined Data Types:
The data types which are defined by user with
help of Standard Data Types is Called User Defined Data Types
1.
Structures
2.
Unions
3.
Enumerations


02:18
Unknown
0 comments:
Post a Comment