printf格式化输出%x时的分析

使用printf(“%x”,…);能够输出指定参数的16进制形式,可是在实际的使用中,参数不必定都是32位的整数,有多是16位的short,8位的char。若是使用printf %x 输出short和char会是什么结果呢? 为此,在VS2015编写简单代码以下:web #include <stdio.h> #include <stdlib.h> int main() { int l;
相关文章
相关标签/搜索