What is Data type & write different data types available in C?
Answers
Answer:
data type a particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it & There are the following data types in C language.
There are the following data types in C language....
There are the following data types in C language....Basic Data Types.
There are the following data types in C language....Basic Data Types.Data Types Memory Size Range
There are the following data types in C language....Basic Data Types.Data Types Memory Size Rangeint 2 byte −32,768 to 32,767
There are the following data types in C language....Basic Data Types.Data Types Memory Size Rangeint 2 byte −32,768 to 32,767signed int 2 byte −32,768 to 32,767
There are the following data types in C language....Basic Data Types.Data Types Memory Size Rangeint 2 byte −32,768 to 32,767signed int 2 byte −32,768 to 32,767unsigned int 2 byte 0 to 65,535
There are the following data types in C language....Basic Data Types.Data Types Memory Size Rangeint 2 byte −32,768 to 32,767signed int 2 byte −32,768 to 32,767unsigned int 2 byte 0 to 65,535short int 2 byte −32,768 to 32,767
Data types in C programming are declarations for variables that determine the type and size of data.
- Different data types available in C are:
- Basic Data Type
- Derived Data Type
- Enumeration Data Type
- Void Data Type
- Basic data type includes int, char, float and double.
- Derived data type includes an array, pointer, structure and union.
- Enumeration and void data type include enum and void respectively.
- A data type is a sort of data that informs the compiler or interpreter how the programmer plans to use the data.
- Data types can also specify the types of operations or methods of processing the data elements.