- 博客(7)
- 收藏
- 关注
原创 运算符
前日内容回顾: 类型说明符: 整形: int ,short, long 浮点: float, double, 字符: char, 有符号:signed, 无符号:unsigned; 定义常量时: const 字节运算符: sizeof 空类型: void格式控制符: %d,%hd,%ld; %f,%lf, %c, %u, 数据类型的转换: 隐式转换: 1,
2017-10-13 18:07:57
207
原创 数据类型转换&运算符
int a = -12; printf(“%u”, a); //4294967284-12 源码:10000000 00000000 00000000 00001100 反码:11111111 11111111 11111111 11110011 补码:11111111 11111111 11111111 11110100当我们用%u格式控制符输出a时,计算机将会把它识别为 一个无符号的
2017-10-13 18:07:09
369
原创 数据储存形式
void int float short long double sizeof const char signed unsigend格式空字符: %d, %f, %c, ???长整型%ld,短整型%hd,双精度%f,有符号,无符号,左对齐,右对齐,保留几位小数%m.n??? ??? 交换两个变量值的方法,五种中的前四种???int a = 24; 00000000 00000000 0000
2017-10-13 18:06:08
298
原创 数据类型
整形:长整型long 整形int 短整型short浮点型:单精度float 双精度doublevoid int long short float sizeof const double char格式空字符:%d,%f,%c,???长整型,短整型,双精度,有符号,无符号,左对齐,右对齐,保留几位小数;??????交换两个变量的方法,五种中的前四
2017-10-11 18:04:00
248
原创 二进制
进制:0,1,2,3,4,5,6,7,8,91234 = 1 * 10^3 + 2 * 10^2 + 3 * 10^1 + 4 *10^0 = 1234 十进制表示方法 权0,1,2,3,4,5,6,701234 = 1 * 8^3 + 2 * 8^2 + 3 * 8^1 + 4 *8^0 = 668 八进制表示方法0,10000 0001 010
2017-09-22 10:47:23
630
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人