摘要: 在C语言中,字符型和整型可隐式转换.如下:int a='A';printf("%3c",a);输出为A;而且在数组下标中,字符变量也可以使用.例如arr['1'-'0']==arr[1]. 阅读全文
posted @ 2012-08-28 09:40 wccc 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 赋值表达式可作为变量使用,变量的值为'='左边的变量赋值后的值.例如 #include <stdio.h> main() { int a; printf("%3d",a=5); }输出为 : 5 阅读全文
posted @ 2012-08-28 09:21 wccc 阅读(342) 评论(0) 推荐(0) 编辑