C语音基础类型
来源:互联网 发布:佰笛手风琴 淘宝 编辑:程序博客网 时间:2024/05/29 14:30
#include <stdio.h>int main() { printf("sizeof(char)=%lu\n", sizeof(char)); printf("sizeof(unsigned char)=%lu\n", sizeof(unsigned char)); printf("sizeof(signed char)=%lu\n", sizeof(signed char)); printf("sizeof(int)=%lu\n", sizeof(int)); printf("sizeof(unsigned int)=%lu\n", sizeof(unsigned int)); printf("sizeof(short)=%lu\n", sizeof(short)); printf("sizeof(unsigned short)=%lu\n", sizeof(unsigned short)); printf("sizeof(long)=%lu\n", sizeof(long)); printf("sizeof(unsigned long)=%lu\n", sizeof(unsigned long)); printf("sizeof(double)=%lu\n", sizeof(double)); printf("sizeof(float)=%lu\n", sizeof(float)); return 0;}
运行结果:
sizeof(char)=1sizeof(unsigned char)=1sizeof(signed char)=1sizeof(int)=4sizeof(unsigned int)=4sizeof(short)=2sizeof(unsigned short)=2sizeof(long)=8sizeof(unsigned long)=8sizeof(double)=8sizeof(float)=4
阅读全文
0 0
- C语音基础类型
- C语音基础-数组12
- C语音基础-枚举23
- C语音基础-typedef 24
- C语音switch参数的类型问题
- 讯飞C/C++语音合成基础篇
- C语音基础-指针初识15
- C语音基础-计算机内存管理20
- C语音基础与提高1
- c语言基础类型
- c sharp 类型基础
- c语音
- 基础C语音编程时常犯的错误
- 登山-C#-enum类型基础
- java 语音基础
- c语言基础(六)之类型
- 《CLR via C#》读书笔记之:类型基础
- 黑马程序员--C语言基础-变量类型
- (0070)iOS开发之AVFoundation枚举属性注解
- SQL Server(MSSQLSERVER) 请求失败或服务未及时响应,有关详细信息,请参见事件日志或其他的适用的错误日志。
- 实操《深入浅出React和Redux》第三期—Redux
- Docker Compose进行多容器创建与日常维护
- 互联网架构,如何进行容量设计?
- C语音基础类型
- ES6学习之路5----数组方法
- 明白为什么需要什么库就添加什么库了
- XHR异步上传文件报错: “the request was rejected because no multipart boundary was found”
- win10系统modern setup host 占用磁盘使用率的解决方法
- keil中结构体用法及Error: L6200E: Symbol Track multiply defined (by arithmetic.o and main.o).解决
- java学习路线
- json
- 剑指offer---单例模式