Variables in C have associated data types. Each data type requires different amounts of memory and has some specific operations which can be performed over it.
Basically there are two types of data in C :-
Basically there are two types of data in C :-
- Primary Data Type
- Secondary Data Type
Primary Data Type :-
Primary data type is Pre-defined by C itself.
- int
- char
- float
- double
Secondary Data Type :-
Secondary data type are defined by the help of primary data types.
- array
- pointer
- structure
- union
- enum
- typedef
Structure, Union, Enum & Typedef are also known as User Defined Data Type.
In upcoming post we will discuss data types in detail.
Primary data type is Pre-defined by C itself.
- int
- char
- float
- double
- array
- pointer
- structure
- union
- enum
- typedef
Structure, Union, Enum & Typedef are also known as User Defined Data Type.
In upcoming post we will discuss data types in detail.