Define Datatype
Define Datatype
**Data Types**:
In programming, data types specify the type of data that can be stored and manipulated in
variables. Each data type has specific characteristics, including the range of values it can
represent, the memory size it occupies, and the operations that can be performed on it.
**Integer**: Integer data types represent whole numbers without any fractional part. They
can be further classified based on their size, signedness (whether they can represent
negative values), and range of values. Common integer types include `int`, `short`, `long`,
and their variations like `unsigned int`.
**Floating-Point**: Floating-point data types represent real numbers with a fractional part.
They can store decimal values and are used for calculations requiring precision. Common
floating-point types include `float`, `double`, and `long double`, each providing different
levels of precision.
**Character**: Character data types represent individual characters such as letters, digits,
or symbols. In C programming, characters are represented using the `char` data type, which
typically occupies 1 byte of memory.
**Boolean**: Boolean data types represent logical values indicating true or false. In
languages like C, boolean values are often represented using integers, where `0` represents
false and any non-zero value represents true. However, some languages have dedicated
boolean data types like `bool` in C++.
**Derived and User-Defined Types**: Derived data types are constructed from fundamental
types or other derived types. Examples include arrays, pointers, structures, and unions.
User-defined types are types defined by the programmer using derived types or other user-
defined types.
**Example**:
```c
#include <stdio.h>
int main() {
return 0;
```
In this example: