赞
踩
- 1.main.c
- //定义:typedef unsigned int size_t;
- typedef unsigned int uint32_t;
- typedef signed int ssize_t;
-
- int main(){
- size_t a;
- ssize_t b;
- int64_t c;
- uint64_t d;
- unint32_t e;
-
- printf("a = %zu \n", a); // size_t <----> unsigned int
- printf("a = %zu \n", e); // uint32_t <----> unsigned int
- printf("b = %zd \n", b); // ssize_t <---> signed int
- printf("c = %jd \n", c); // int64_t <---> long long
- printf("d = %ju \n", d; // uint64_t <---> unsigned long long
- }
-
- *********************************************************
- typedef signed char int8_t;
- typedef short int16_t;
- typedef int int32_t;
- typedef long long int64_t;
-
- /*Unsigned*/
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
- typedef unsigned int uint32_t;
- typedef unsigned long long uint64_t;
- *********************************************************
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。