What is Data Type In C
In the C Programming Language, Data Types refers to an extensive system for declaring variable of different types.
A data types tells the following things about the related variable:
- What is the size of the variable?
- How much its occupies space in storage?
- How the variable bit mapped for its operation?
All data types used in C programming, generally defined in standard library header files. In header files, all the characteristic such as size, space etc. of data-types has been defined.
If you want, you can create your own custom data types in C.
There are mostly following Data Types in C as:
There are mostly following Data Types in C as:
- char Data Type
- int Data Type
- long Data Type
- double Data Type
- float Data Type
- Long Double Data Type
- function Data Type
- pointer Data Type
- array Data Type
- enum Data Type
- struct Data Type
- typedef Data Type
You might also like:
- 16-bit V/S 32-bit compiler meaning In C
- Characters Data type - signed char V/S unsigned char
- integers Data types -
- singed int V/S unsigned int
- long int V/S short int
- float V/S double data type
- long double data type
- Comparison of all data types used in C
Data type in C
Data Type In C Language
There are mainly three data type in C as following :
- Basic Data Type
- int
- char
- float
- long
- double
- long double
- Derived Data Type
- Array
- Pointer
- function
- User Define Data Type
- structure
- union
- enumerated
- typedef
| Data Type | Memory Allocation |
|---|---|
| int | 2 byte |
| long | 4 byte |
| float | 4 byte |
| double | 8 byte |
| long double | 10 byte |
| char | 1 byte |
In data types we also learn about link list,file handling and more. So now we are entering in real c world i.e. C programming.
No comments:
Post a Comment