How many datatype support by C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How many datatype support by C?

1st Oct 2023, 11:02 AM
Virtual
Virtual - avatar
5 Answers
+ 3
4. Int Float Double Char
1st Oct 2023, 11:06 AM
Jai
+ 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.
1st Oct 2023, 8:10 PM
Jan Markus
+ 1
Int float Double char (long)
1st Oct 2023, 11:15 AM
D1M3
D1M3 - avatar
0
I forgot struct
1st Oct 2023, 8:12 PM
D1M3
D1M3 - avatar
0
Int Float Char Double
2nd Oct 2023, 2:26 PM
Adarsh Chauhan
Adarsh Chauhan - avatar