C语言的标准和一些基本的数据类型
2016-12-03 16:12
369 查看
http://en.cppreference.com/w/ http://zh.cppreference.com/w/%E9%A6%96%E9%A1%B5
C++ reference
C++98, C++03, C++11, C++14, C++17
C reference
C89, C95, C99, C11
char
unsigned char
short
int
float
double
long
long long
long double
long double
long long int
C语言的数据类型
一、基本类型
1、整形类型:int ,short int,long int,long long int(C99),char,bool
2、浮点类型:float ,double,双精度浮点型(float_complex,double_complex,long long_comples)
二、枚举类型 enum
三、空类型 void
四、派生类型
1、指针类型 *
2、数组类型 []
3、结构体类型 struct
4、共用体类型 union
5、函数类型
定宽整数类型 (C99起)
定义于头文件 <stdint.h>
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int_least8_t;
typedef short int_least16_t;
typedef int int_least32_t;
typedef long long int_least64_t;
typedef unsigned char uint_least8_t;
typedef unsigned short uint_least16_t;
typedef unsigned int uint_least32_t;
typedef unsigned long long uint_least64_t;
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
typedef long long intmax_t;
typedef unsigned long long uintmax_t;
C++ reference
C++98, C++03, C++11, C++14, C++17
C reference
C89, C95, C99, C11
char
unsigned char
short
int
float
double
long
long long
long double
long double
long long int
C语言的数据类型
一、基本类型
1、整形类型:int ,short int,long int,long long int(C99),char,bool
2、浮点类型:float ,double,双精度浮点型(float_complex,double_complex,long long_comples)
二、枚举类型 enum
三、空类型 void
四、派生类型
1、指针类型 *
2、数组类型 []
3、结构体类型 struct
4、共用体类型 union
5、函数类型
定宽整数类型 (C99起)
定义于头文件 <stdint.h>
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int_least8_t;
typedef short int_least16_t;
typedef int int_least32_t;
typedef long long int_least64_t;
typedef unsigned char uint_least8_t;
typedef unsigned short uint_least16_t;
typedef unsigned int uint_least32_t;
typedef unsigned long long uint_least64_t;
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
typedef long long intmax_t;
typedef unsigned long long uintmax_t;
相关文章推荐
- C语言中基本数据类型的分析
- 在学C语言之第二章C语言的基本数据类型和存储类-------双精度型数据
- Java第一课 Java的一些基本概念,Java的起源、为什么我们要学习Java语言,Java跨平台原理剖析;Java环境变量的配置,初学者常犯的问题,Java语言的基本数据类型和Java的语句。
- C语言中的基本数据类型
- 基本数据类型的一些易错点
- 在学C语言之第二章C语言的基本数据类型和存储类-------浮点型
- 在32、64位系统、C语言基本数据类型的长度。
- C语言:基本数据类型,限定符,大小范围
- C语言一些基础:数据类型,运算类型及表达式
- C语言学习笔记之基本数据类型
- C语言基本数据类型详解
- IEEE754浮点格式简述 和 C语言基本数据类型转换实质
- C语言:基本数据类型与程序结构控制
- C语言速成手册(一):基本数据类型、标准输出、函数
- IEEE754浮点格式简述 和 C语言基本数据类型转换实质
- [转载]使用日期/时间型数据类型的一些基本问题(ACCESS中测试)
- C语言基本数据类型详解
- C语言的基本数据类型及数据类型转换
- c语言基本数据类型在内存中所占字节
- C语言基本数据类型的长度和取值范围