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;
相關文章
相關標籤/搜索