您的位置:首页 > 编程语言 > C语言/C++

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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: