0
How many datatype support by C?
5 Antworten
+ 3
4.
Int
Float
Double
Char
+ 3
In C, there are several fundamental data types that can be categorized as follows:
Integer Data Types:
- int
- char
- short
- long
- long long
and so on.
Floating-Point Data Types:
- float
- double
- long double
Pointer Data Types:
- Pointers to integers
- Pointers to floating-point numbers
- Pointers to characters
- Pointers to structures
- Pointers to functions
and more.
Enumeration Data Type (enum)
The void data type, used in various contexts such as pointers to unknown data types or as the return type for functions that don't return a value.
While C provides these fundamental data types, you can create custom data types using structures (structs) and unions (union). This greatly extends the flexibility of data types in C. With structures, you can combine multiple data types into a custom data type, and with unions, you can share different data types, with only one being visible at a time.
In this sense, users can create an infinite number of data types.
+ 1
Int float Double char (long)
0
I forgot struct
0
Int
Float
Char
Double