+ 1
IsThere any Data types beyond these four in C language? (int, float, char, double)
C Language
2 Antworten
+ 7
Besides arithmetic types ¹, the standard library (support library) also provides some additional types like
`bool` type — also `true` and `false` keywords — by adding <stdbool.h> ²
~~~~~~
int8_t
int16_t
int32_t
int64_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
intptr_t
uint8_t
uint16_t
uint32_t
uint64_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
uintptr_t
by adding <stdint.h> ³
_____
¹ https://en.cppreference.com/w/c/language/arithmetic_types
² https://en.cppreference.com/w/c/types/boolean
³ https://en.cppreference.com/w/c/types/integer
+ 1
short int
unsigned short int
unsigned int
long int
unsigned long int
long long int
unsigned long long int
signed char
unsigned char
long double