C语言的标准和一些基本的数据类型

    xiaoxiao2021-12-14  17

    http://en.cppreference.com/w/

    http://zh.cppreference.com/w/首页

    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;

    转载请注明原文地址: https://ju.6miu.com/read-970354.html

    最新回复(0)